基于Springboot+Vue的Java项目-商业辅助决策系统开发实战(附演示视频+源码+LW)
大家好!我是程序员一帆,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:Java毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
🎰 Python-based Senior Thesis
🌎Senior Design Project with WeChat App
开发环境
开发语言:
编程语言:
Java框架技术:
Springboot+VueJDK版本:
JDK1.8服务器软件:
tomcat7(即为 tomcat 7)数据存储系统:
mysql 5.7数据库管理工具:
Navicat12开发环境配置软件:
eclipse/myeclipse/idea构建工具包:
Maven3.3.9
- 网页浏览器:
- 谷歌浏览器
演示视频
springboot295商业辅助决策系统录像
高清演示视频(原版)- 编号 295
源码下载地址:
<>
LW目录
【如需全文请按文末获取联系】


目录
- 开发平台
- 演示视频材料
- 源码下载地址:请前往
- LW文件夹
- 一、项目概述
- 二、系统架构设计
-
2.1 功能模块详细规划
-
2.2 数据库架构规划
-
三、系统项目部分截图
-
- 3.1管理员功能实现
- 3.2员工功能实现
-
四、部分核心代码
-
- 4.1 用户部分
-
获取源码或论文
-
一、项目简介
管理员包含的功能模块涉及:个人档案、数据基础维护、信息发布、资金运作、订单处理流程、人力资源配置、人员配置与维护以及权限认证入口等功能。
员工包含的功能区有 个人中心、信息公告浏览、销售记录查询、薪酬查询和员工登录。
二、系统设计
2.1软件功能模块设计
管理员功能结构

员工功能结构

2.2数据库设计
(1)图4.4即为薪资这个实体所拥有的属性值。

(2)图4.5即为销售订单这个实体所拥有的属性值。

(3)图4.6即为员工这个实体所拥有的属性值。

(4)图4.7即为管理员这个实体所拥有的属性值。

(5)图4.8即为上面介绍的实体中存在的联系。

三、系统项目部分截图
3.1管理员功能实现
图5.1基于编码实现的公告管理界面,在该界面对用户开放后管理员可在此发布各类通知消息若出现错误内容将被即时修正;当需要删除某个特定的通知时会被系统自动移除;而在搜索功能中建议用户直接输入待查找的通知名称以提高搜索效率;此外该系统不仅支持显示通知图片还提供了详细的分类类型以及创建时间等详细信息

如图5.3所示,在该系统中通过编码实现了销售订单管理界面。系统中的管理员能够在此界面创建新的销售订单记录,并包含如数量、日期等关键数据字段的信息。当发现记录有误时,则可以在第一时间进行更正,并且可以通过员工姓名这个字段来进行筛选。此外还可以根据不同的产品类型来进一步分类查看相关记录。

图5.5展示了采用编码技术实现的员工管理界面,在系统中管理员能够方便地进行新增操作,并且当存在登记错误时能够及时纠正相关记录。系统内置了完善的管理功能:管理员可执行删除操作并重新设置账户密码。该界面包含丰富的人工信息管理功能:如身份证号等基本信息记录以及部门归属关系等高级属性设置。为了快速定位到所需员工信息,在输入框内录入相关信息即可。若选择按姓名搜索,则需先录入该员工作业的基本资料以便检索;若选择按职位搜索,则需先录入该员工作业的岗位职责方能精准定位到对应的人工档案;而按部门搜索则需先确定目标人员所属的工作区域才能调取详细档案记录

图5.7展示了基于编码实现的部门管理界面,在该系统中,管理员通过该界面能够便捷地新增部门信息,并且现有部门信息能够及时更新维护。此外,在该界面中管理员不仅可以删除不需要的部门信息,在查询功能上也实现了通过名称即可完成对相关的信息检索。

3.2员工功能实现
工资查阅系统

图5.11展示了通过编码实现的个性化信息展示界面,在这一界面上, 员工无法修改所属部门和职位信息, 但其他可编辑的信息包括头像、手机号等。

四、部分核心代码
4.1 用户部分
package com.controller;
import java.io.File;
import java.math.BigDecimal;
import java.net.URL;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.JSONObject;
import java.util.*;
import org.springframework.beans.BeanUtils;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.context.ContextLoader;
import javax.servlet.ServletContext;
import com.service.TokenService;
import com.utils.*;
import java.lang.reflect.InvocationTargetException;
import com.service.DictionaryService;
import org.apache.commons.lang3.StringUtils;
import com.annotation.IgnoreAuth;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.entity.*;
import com.entity.view.*;
import com.service.*;
import com.utils.PageUtils;
import com.utils.R;
import com.alibaba.fastjson.*;
/** * 公告
* 后端接口
* @author
* @email
*/
@RestController
@Controller
@RequestMapping("/gonggao")
public class GonggaoController {
private static final Logger logger = LoggerFactory.getLogger(GonggaoController.class);
@Autowired
private GonggaoService gonggaoService;
@Autowired
private TokenService tokenService;
@Autowired
private DictionaryService dictionaryService;
//级联表service
@Autowired
private YuangongService yuangongService;
/** * 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){
logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
String role = String.valueOf(request.getSession().getAttribute("role"));
if(false)
return R.error(511,"永不会进入");
else if("员工".equals(role))
params.put("yuangongId",request.getSession().getAttribute("userId"));
if(params.get("orderBy")==null || params.get("orderBy")==""){
params.put("orderBy","id");
}
PageUtils page = gonggaoService.queryPage(params);
//字典表数据转换
List<GonggaoView> list =(List<GonggaoView>)page.getList();
for(GonggaoView c:list){
//修改对应字典表字段
dictionaryService.dictionaryConvert(c, request);
}
return R.ok().put("data", page);
}
/** * 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id, HttpServletRequest request){
logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
GonggaoEntity gonggao = gonggaoService.selectById(id);
if(gonggao !=null){
//entity转view
GonggaoView view = new GonggaoView();
BeanUtils.copyProperties( gonggao , view );//把实体数据重构到view中
//修改对应字典表字段
dictionaryService.dictionaryConvert(view, request);
return R.ok().put("data", view);
}else {
return R.error(511,"查不到数据");
}
}
/** * 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody GonggaoEntity gonggao, HttpServletRequest request){
logger.debug("save方法:,,Controller:{},,gonggao:{}",this.getClass().getName(),gonggao.toString());
String role = String.valueOf(request.getSession().getAttribute("role"));
if(false)
return R.error(511,"永远不会进入");
Wrapper<GonggaoEntity> queryWrapper = new EntityWrapper<GonggaoEntity>()
.eq("gonggao_name", gonggao.getGonggaoName())
.eq("gonggao_types", gonggao.getGonggaoTypes())
;
logger.info("sql语句:"+queryWrapper.getSqlSegment());
GonggaoEntity gonggaoEntity = gonggaoService.selectOne(queryWrapper);
if(gonggaoEntity==null){
gonggao.setInsertTime(new Date());
gonggao.setCreateTime(new Date());
gonggaoService.insert(gonggao);
return R.ok();
}else {
return R.error(511,"表中有相同数据");
}
}
/** * 后端修改
*/
@RequestMapping("/update")
public R update(@RequestBody GonggaoEntity gonggao, HttpServletRequest request){
logger.debug("update方法:,,Controller:{},,gonggao:{}",this.getClass().getName(),gonggao.toString());
String role = String.valueOf(request.getSession().getAttribute("role"));
// if(false)
// return R.error(511,"永远不会进入");
//根据字段查询是否有相同数据
Wrapper<GonggaoEntity> queryWrapper = new EntityWrapper<GonggaoEntity>()
.notIn("id",gonggao.getId())
.andNew()
.eq("gonggao_name", gonggao.getGonggaoName())
.eq("gonggao_types", gonggao.getGonggaoTypes())
;
logger.info("sql语句:"+queryWrapper.getSqlSegment());
GonggaoEntity gonggaoEntity = gonggaoService.selectOne(queryWrapper);
if("".equals(gonggao.getGonggaoPhoto()) || "null".equals(gonggao.getGonggaoPhoto())){
gonggao.setGonggaoPhoto(null);
}
if(gonggaoEntity==null){
gonggaoService.updateById(gonggao);//根据id更新
return R.ok();
}else {
return R.error(511,"表中有相同数据");
}
}
/** * 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Integer[] ids){
logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());
gonggaoService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/** * 批量上传
*/
@RequestMapping("/batchInsert")
public R save( String fileName, HttpServletRequest request){
logger.debug("batchInsert方法:,,Controller:{},,fileName:{}",this.getClass().getName(),fileName);
Integer yonghuId = Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId")));
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
List<GonggaoEntity> gonggaoList = new ArrayList<>();//上传的东西
Map<String, List<String>> seachFields= new HashMap<>();//要查询的字段
Date date = new Date();
int lastIndexOf = fileName.lastIndexOf(".");
if(lastIndexOf == -1){
return R.error(511,"该文件没有后缀");
}else{
String suffix = fileName.substring(lastIndexOf);
if(!".xls".equals(suffix)){
return R.error(511,"只支持后缀为xls的excel文件");
}else{
URL resource = this.getClass().getClassLoader().getResource("static/upload/" + fileName);//获取文件路径
File file = new File(resource.getFile());
if(!file.exists()){
return R.error(511,"找不到上传文件,请联系管理员");
}else{
List<List<String>> dataList = PoiUtil.poiImport(file.getPath());//读取xls文件
dataList.remove(0);//删除第一行,因为第一行是提示
for(List<String> data:dataList){
//循环
GonggaoEntity gonggaoEntity = new GonggaoEntity();
// gonggaoEntity.setGonggaoName(data.get(0)); //公告名称 要改的
// gonggaoEntity.setGonggaoPhoto("");//详情和图片
// gonggaoEntity.setGonggaoTypes(Integer.valueOf(data.get(0))); //公告类型 要改的
// gonggaoEntity.setInsertTime(date);//时间
// gonggaoEntity.setGonggaoContent("");//详情和图片
// gonggaoEntity.setCreateTime(date);//时间
gonggaoList.add(gonggaoEntity);
//把要查询是否重复的字段放入map中
}
//查询是否重复
gonggaoService.insertBatch(gonggaoList);
return R.ok();
}
}
}
}catch (Exception e){
e.printStackTrace();
return R.error(511,"批量插入数据异常,请联系管理员");
}
}
}
java

获取源码或论文
如若需要获取到相关的LW文件或源代码,请访问我的个人简介页面查看联系方式。
