*文末获取源码
开发环境
项目编号:Java+spring+springmvc ssm424超市进销存管理系统#毕业设计
开发语言:Java
开发工具:IDEA /Eclipse
数据库:MYSQL5.7
应用服务:Tomcat7/Tomcat8
使用框架:ssm+vue
项目介绍
21世纪的今天,随着社会的不断发展与进步,人们对于信息科学化的认识,已由低层次向高层次发展,由原来的感性认识向理性认识提高,管理工作的重要性已逐渐被人们所认识,科学化的管理,使信息存储达到准确、快速、完善,并能提高工作管理效率,促进其发展。
论文主要是对超市管理系统进行了介绍,包括研究的现状,还有涉及的开发背景,然后还对系统的设计目标进行了论述,还有系统的需求,以及整个的设计方案,对系统的设计以及实现,也都论述的比较细致,最后对超市管理系统进行了一些具体测试。
本文以JSP为开发技术,实现了一个超市管理系统。超市管理系统的主要使用者分为管理员;个人中心、员工管理、供应商管理、商品库存管理、商品类型管理、商品进货管理、商品销售管理、上班打卡管理、请假信息管理、交流信息管理、交流回复管理,员工;个人中心、供应商管理、商品库存管理、商品进货管理、商品销售管理、上班打卡管理、请假信息管理、交流信息管理、交流回复管理等功能。通过这些功能模块的设计,基本上实现了整个超市管理系统的过程。
系统截图
关键代码
/**
* 商品销售
* 后端接口
* @author
* @email
* @date 2021-03-10 17:20:00
*/
@RestController
@RequestMapping("/shangpinxiaoshou")
public class ShangpinxiaoshouController {
@Autowired
private ShangpinxiaoshouService shangpinxiaoshouService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ShangpinxiaoshouEntity shangpinxiaoshou,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yuangong")) {
shangpinxiaoshou.setGonghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ShangpinxiaoshouEntity> ew = new EntityWrapper<ShangpinxiaoshouEntity>();
PageUtils page = shangpinxiaoshouService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shangpinxiaoshou), params), params));
request.setAttribute("data", page);
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ShangpinxiaoshouEntity shangpinxiaoshou, HttpServletRequest request){
EntityWrapper<ShangpinxiaoshouEntity> ew = new EntityWrapper<ShangpinxiaoshouEntity>();
PageUtils page = shangpinxiaoshouService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shangpinxiaoshou), params), params));
request.setAttribute("data", page);
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( ShangpinxiaoshouEntity shangpinxiaoshou){
EntityWrapper<ShangpinxiaoshouEntity> ew = new EntityWrapper<ShangpinxiaoshouEntity>();
ew.allEq(MPUtil.allEQMapPre( shangpinxiaoshou, "shangpinxiaoshou"));
return R.ok().put("data", shangpinxiaoshouService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ShangpinxiaoshouEntity shangpinxiaoshou){
EntityWrapper< ShangpinxiaoshouEntity> ew = new EntityWrapper< ShangpinxiaoshouEntity>();
ew.allEq(MPUtil.allEQMapPre( shangpinxiaoshou, "shangpinxiaoshou"));
ShangpinxiaoshouView shangpinxiaoshouView = shangpinxiaoshouService.selectView(ew);
return R.ok("查询商品销售成功").put("data", shangpinxiaoshouView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ShangpinxiaoshouEntity shangpinxiaoshou = shangpinxiaoshouService.selectById(id);
return R.ok().put("data", shangpinxiaoshou);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ShangpinxiaoshouEntity shangpinxiaoshou = shangpinxiaoshouService.selectById(id);
return R.ok().put("data", shangpinxiaoshou);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ShangpinxiaoshouEntity shangpinxiaoshou, HttpServletRequest request){
shangpinxiaoshou.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(shangpinxiaoshou);
shangpinxiaoshouService.insert(shangpinxiaoshou);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ShangpinxiaoshouEntity shangpinxiaoshou, HttpServletRequest request){
shangpinxiaoshou.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(shangpinxiaoshou);
shangpinxiaoshouService.insert(shangpinxiaoshou);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ShangpinxiaoshouEntity shangpinxiaoshou, HttpServletRequest request){
//ValidatorUtils.validateEntity(shangpinxiaoshou);
shangpinxiaoshouService.updateById(shangpinxiaoshou);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
shangpinxiaoshouService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}