精彩专栏推荐订阅:在 下方专栏👇🏻👇🏻👇🏻👇🏻
💖🔥作者主页:计算机毕设木哥🔥 💖
一、项目介绍
传统信息的管理大部分依赖于管理人员的手工登记与管理,然而,随着近些年信息技术的迅猛发展,让许多比较老套的信息管理模式进行了更新迭代,员工信息因为其管理内容繁杂,管理数量繁多导致手工进行处理不能满足广大用户的需求,因此就应运而生出相应的企业信息管理系统。
本企业信息管理系统分为管理员还有用户两个权限,管理员可以管理用户的基本信息内容,可以管理公告信息以及公告的租赁信息,能够与用户进行相互交流等操作,用户可以查看员工信息,可以查看公告以及查看管理员回复信息等操作。
该企业信息管理系统采用的是WEB应用程序开发中最受欢迎的B/S三层结构模式,使用占用空间小但功能齐全的MySQL数据库进行数据的存储操作,系统开发技术使用到了JSP技术。该企业信息管理系统能够解决许多传统手工操作的难题,比如数据查询耽误时间长,数据管理步骤繁琐等问题。总的来说,企业信息管理系统性能稳定,功能较全,投入运行使用性价比很高。
二、开发环境
- 开发语言:Java
- 数据库:MySQL
- 系统架构:B/S
- 后端:springboot
- 前端:vue
- 工具:IDEA或者Eclipse、JDK1.8、Maven
三、项目展示
登录模块:
管理模块:
四、代码展示
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ShixunfenpeiEntity shixunfenpei, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("xueshengxinxi")) {
shixunfenpei.setXuehao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ShixunfenpeiEntity> ew = new EntityWrapper<ShixunfenpeiEntity>();
PageUtils page = shixunfenpeiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shixunfenpei), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ShixunfenpeiEntity shixunfenpei, HttpServletRequest request){
EntityWrapper<ShixunfenpeiEntity> ew = new EntityWrapper<ShixunfenpeiEntity>();
PageUtils page = shixunfenpeiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shixunfenpei), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( ShixunfenpeiEntity shixunfenpei){
EntityWrapper<ShixunfenpeiEntity> ew = new EntityWrapper<ShixunfenpeiEntity>();
ew.allEq(MPUtil.allEQMapPre( shixunfenpei, "shixunfenpei"));
return R.ok().put("data", shixunfenpeiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ShixunfenpeiEntity shixunfenpei){
EntityWrapper< ShixunfenpeiEntity> ew = new EntityWrapper< ShixunfenpeiEntity>();
ew.allEq(MPUtil.allEQMapPre( shixunfenpei, "shixunfenpei"));
ShixunfenpeiView shixunfenpeiView = shixunfenpeiService.selectView(ew);
return R.ok("查询实训分配成功").put("data", shixunfenpeiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
ShixunfenpeiEntity shixunfenpei = shixunfenpeiService.selectById(id);
return R.ok().put("data", shixunfenpei);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") String id){
ShixunfenpeiEntity shixunfenpei = shixunfenpeiService.selectById(id);
return R.ok().put("data", shixunfenpei);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ShixunfenpeiEntity shixunfenpei, HttpServletRequest request){
//ValidatorUtils.validateEntity(shixunfenpei);
shixunfenpeiService.insert(shixunfenpei);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ShixunfenpeiEntity shixunfenpei, HttpServletRequest request){
//ValidatorUtils.validateEntity(shixunfenpei);
shixunfenpeiService.insert(shixunfenpei);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ShixunfenpeiEntity shixunfenpei, HttpServletRequest request){
//ValidatorUtils.validateEntity(shixunfenpei);
shixunfenpeiService.updateById(shixunfenpei);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
shixunfenpeiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}