目录
专注于大学生实战开发、讲解和毕业答疑等辅导,获取源码后台
一、前言
随着社会的日新月异,计算机技术的影响力已渗透到社会经济的每一个角落,其深度与广度前所未有。伴随着人民生活质量的显著提升,公众对于日常生活便捷性、高效性的追求也日益增强,这直接催生了对智能仓储系统日益增长且多元化的需求。智能仓储,作为现代物流与供应链管理的重要一环,正逐步成为社会各界关注的焦点,其高效、精准、自动化的特性极大地满足了市场对于提升仓储管理效率、降低运营成本、优化资源配置的迫切需求。
二、技术介绍
开发语言:Java
框架:ssm
技术:JSP
JDK版本:JDK1.8
服务器:tomcat7
数据库:mysql 5.7
数据库工具:Navicat11
开发软件:eclipse/myeclipse/idea
Maven包:Maven3.3.9
三、项目实现截图
智能仓储系统 ,在智能仓储系统可以查看个人中心、公告信息管理、员工管理、供应商管理、商品分类管理、供应商货物管理、货物采购管理、商品信息管理、商品入库管理、商品出库管理、在线沟通管理、货物盘点管理等内容。
供应商管理,在供应商管理页面可以查看供应商账号、密码、供应商名称、图片、联系人、联系电话、联系地址等信息进行修改、删除、查看。
商品入库管理,在商品入库管理页面可以查看商品名称、分类、品牌、规格、数量、进价、总金额、备注、登记日期、员工工号、员工姓名等信息进行查看、修改、删除。
四、论文流程参考
五、核心代码截图
@RestController
@RequestMapping("/huowupandian")
public class HuowupandianController {
@Autowired
private HuowupandianService huowupandianService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,HuowupandianEntity huowupandian, HttpServletRequest request){
EntityWrapper<HuowupandianEntity> ew = new EntityWrapper<HuowupandianEntity>();
PageUtils page = huowupandianService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huowupandian), params), params));
request.setAttribute("data", page);
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,HuowupandianEntity huowupandian, HttpServletRequest request){
EntityWrapper<HuowupandianEntity> ew = new EntityWrapper<HuowupandianEntity>();
PageUtils page = huowupandianService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huowupandian), params), params));
request.setAttribute("data", page);
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( HuowupandianEntity huowupandian){
EntityWrapper<HuowupandianEntity> ew = new EntityWrapper<HuowupandianEntity>();
ew.allEq(MPUtil.allEQMapPre( huowupandian, "huowupandian"));
return R.ok().put("data", huowupandianService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(HuowupandianEntity huowupandian){
EntityWrapper< HuowupandianEntity> ew = new EntityWrapper< HuowupandianEntity>();
ew.allEq(MPUtil.allEQMapPre( huowupandian, "huowupandian"));
HuowupandianView huowupandianView = huowupandianService.selectView(ew);
return R.ok("查询货物盘点成功").put("data", huowupandianView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
HuowupandianEntity huowupandian = huowupandianService.selectById(id);
return R.ok().put("data", huowupandian);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
HuowupandianEntity huowupandian = huowupandianService.selectById(id);
return R.ok().put("data", huowupandian);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody HuowupandianEntity huowupandian, HttpServletRequest request){
huowupandian.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(huowupandian);
huowupandianService.insert(huowupandian);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody HuowupandianEntity huowupandian, HttpServletRequest request){
huowupandian.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(huowupandian);
huowupandianService.insert(huowupandian);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody HuowupandianEntity huowupandian, HttpServletRequest request){
//ValidatorUtils.validateEntity(huowupandian);
huowupandianService.updateById(huowupandian);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
huowupandianService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 提醒接口
*/
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<HuowupandianEntity> wrapper = new EntityWrapper<HuowupandianEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = huowupandianService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
六、源码获取
感谢大家收藏点赞评论,获取源码后台私