当前位置: 首页 > news >正文

智能仓库|基于springBoot的智能无人仓库管理设计与实现(附项目源码+论文+数据库)

私信或留言即免费送开题报告和任务书(可指定任意题目)

目录

一、摘要

二、相关技术

三、系统设计

四、数据库设计  

五、核心代码  

六、论文参考 

七、源码获取  


一、摘要

互联网发展至今,无论是其理论还是技术都已经成熟,而且它广泛参与在社会中的方方面面。它让信息都可以通过网络传播,搭配信息管理工具可以很好地为人们提供服务。针对信息管理混乱,出错率高,信息安全性差,劳动强度大,费时费力等问题,采用智能无人仓库管理可以有效管理,使信息管理能够更加科学和规范。

智能无人仓库管理在Eclipse环境中,使用Java语言进行编码,使用Mysql创建数据表保存本系统产生的数据。

总之,智能无人仓库管理集中管理信息,有着保密性强,效率高,存储空间大,成本低等诸多优点。它可以降低信息管理成本,实现信息管理计算机化。

关键词:智能无人仓库管理;Java语言;Mysql

二、相关技术

java、tomcat、mysql、spring、springBoot、mybatis、query、vue

三、系统设计

3.1 整体功能设计图

 3.2 功能具体细节设计   

(1)员工信息管理

如图5.1显示的就是员工信息管理页面,此页面提供给管理员的功能有:员工信息的查询管理,可以删除员工信息、修改员工信息、新增员工信息,还进行了对用户名称的模糊查询的条件

(2)补货提醒管理

如图5.2显示的就是补货提醒管理页面,此页面提供给管理员的功能有:查看已发布的补货提醒数据,修改补货提醒,补货提醒作废,即可删除,还进行了对补货提醒名称的模糊查询 补货提醒信息的类型查询等等一些条件。

(3)物品类型管理

如图5.3显示的就是物品类型管理页面,此页面提供给管理员的功能有:根据物品类型进行条件查询,还可以对物品类型进行新增、修改、查询操作等等。

(4)补货申请管理

如图5.4显示的就是补货申请管理页面,此页面提供给管理员的功能有:根据补货申请进行新增、修改、查询操作等等。

四、数据库设计  

(1)下图是补货申请实体和其具备的属性。

(2)下图是字典表实体和其具备的属性。

(3)下图是员工实体和其具备的属性。

(4)下图是取货申请实体和其具备的属性。

(5)下图是补货提醒实体和其具备的属性。

五、核心代码  


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("/quhuoshenqing")
public class QuhuoshenqingController {private static final Logger logger = LoggerFactory.getLogger(QuhuoshenqingController.class);@Autowiredprivate QuhuoshenqingService quhuoshenqingService;@Autowiredprivate TokenService tokenService;@Autowiredprivate DictionaryService dictionaryService;//级联表service@Autowiredprivate YonghuService yonghuService;/*** 后端列表*/@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("yonghuId",request.getSession().getAttribute("userId"));if(params.get("orderBy")==null || params.get("orderBy")==""){params.put("orderBy","id");}PageUtils page = quhuoshenqingService.queryPage(params);//字典表数据转换List<QuhuoshenqingView> list =(List<QuhuoshenqingView>)page.getList();for(QuhuoshenqingView 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);QuhuoshenqingEntity quhuoshenqing = quhuoshenqingService.selectById(id);if(quhuoshenqing !=null){//entity转viewQuhuoshenqingView view = new QuhuoshenqingView();BeanUtils.copyProperties( quhuoshenqing , view );//把实体数据重构到view中//级联表YonghuEntity yonghu = yonghuService.selectById(quhuoshenqing.getYonghuId());if(yonghu != null){BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createTime", "insertTime", "updateTime"});//把级联的数据添加到view中,并排除id和创建时间字段view.setYonghuId(yonghu.getId());}//修改对应字典表字段dictionaryService.dictionaryConvert(view, request);return R.ok().put("data", view);}else {return R.error(511,"查不到数据");}}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody QuhuoshenqingEntity quhuoshenqing, HttpServletRequest request){logger.debug("save方法:,,Controller:{},,quhuoshenqing:{}",this.getClass().getName(),quhuoshenqing.toString());String role = String.valueOf(request.getSession().getAttribute("role"));if(false)return R.error(511,"永远不会进入");else if("员工".equals(role))quhuoshenqing.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));Wrapper<QuhuoshenqingEntity> queryWrapper = new EntityWrapper<QuhuoshenqingEntity>().eq("quhuoshenqing_name", quhuoshenqing.getQuhuoshenqingName()).eq("buhuotixing_types", quhuoshenqing.getBuhuotixingTypes()).eq("yonghu_id", quhuoshenqing.getYonghuId()).eq("quhuoshenqing_number", quhuoshenqing.getQuhuoshenqingNumber()).eq("quhuoshenqing_yesno_types", quhuoshenqing.getQuhuoshenqingYesnoTypes()).eq("quhuoshenqing_yesno_text", quhuoshenqing.getQuhuoshenqingYesnoText());logger.info("sql语句:"+queryWrapper.getSqlSegment());QuhuoshenqingEntity quhuoshenqingEntity = quhuoshenqingService.selectOne(queryWrapper);if(quhuoshenqingEntity==null){quhuoshenqing.setQuhuoshenqingYesnoTypes(1);quhuoshenqing.setCreateTime(new Date());quhuoshenqingService.insert(quhuoshenqing);return R.ok();}else {return R.error(511,"表中有相同数据");}}/*** 后端修改*/@RequestMapping("/update")public R update(@RequestBody QuhuoshenqingEntity quhuoshenqing, HttpServletRequest request){logger.debug("update方法:,,Controller:{},,quhuoshenqing:{}",this.getClass().getName(),quhuoshenqing.toString());String role = String.valueOf(request.getSession().getAttribute("role"));
//        if(false)
//            return R.error(511,"永远不会进入");
//        else if("员工".equals(role))
//            quhuoshenqing.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));//根据字段查询是否有相同数据Wrapper<QuhuoshenqingEntity> queryWrapper = new EntityWrapper<QuhuoshenqingEntity>().notIn("id",quhuoshenqing.getId()).andNew().eq("quhuoshenqing_name", quhuoshenqing.getQuhuoshenqingName()).eq("buhuotixing_types", quhuoshenqing.getBuhuotixingTypes()).eq("yonghu_id", quhuoshenqing.getYonghuId()).eq("quhuoshenqing_number", quhuoshenqing.getQuhuoshenqingNumber()).eq("quhuoshenqing_yesno_types", quhuoshenqing.getQuhuoshenqingYesnoTypes()).eq("quhuoshenqing_yesno_text", quhuoshenqing.getQuhuoshenqingYesnoText());logger.info("sql语句:"+queryWrapper.getSqlSegment());QuhuoshenqingEntity quhuoshenqingEntity = quhuoshenqingService.selectOne(queryWrapper);if(quhuoshenqingEntity==null){quhuoshenqingService.updateById(quhuoshenqing);//根据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());quhuoshenqingService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 批量上传*/@RequestMapping("/batchInsert")public R save( String fileName){logger.debug("batchInsert方法:,,Controller:{},,fileName:{}",this.getClass().getName(),fileName);try {List<QuhuoshenqingEntity> quhuoshenqingList = 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){//循环QuhuoshenqingEntity quhuoshenqingEntity = new QuhuoshenqingEntity();
//                            quhuoshenqingEntity.setQuhuoshenqingName(data.get(0));                    //物品名称 要改的
//                            quhuoshenqingEntity.setBuhuotixingTypes(Integer.valueOf(data.get(0)));   //物品类型 要改的
//                            quhuoshenqingEntity.setYonghuId(Integer.valueOf(data.get(0)));   //员工 要改的
//                            quhuoshenqingEntity.setQuhuoshenqingNumber(Integer.valueOf(data.get(0)));   //取货数量 要改的
//                            quhuoshenqingEntity.setQuhuoshenqingYesnoTypes(Integer.valueOf(data.get(0)));   //审核状态 要改的
//                            quhuoshenqingEntity.setQuhuoshenqingYesnoText(data.get(0));                    //审核意见 要改的
//                            quhuoshenqingEntity.setCreateTime(date);//时间quhuoshenqingList.add(quhuoshenqingEntity);//把要查询是否重复的字段放入map中}//查询是否重复quhuoshenqingService.insertBatch(quhuoshenqingList);return R.ok();}}}}catch (Exception e){return R.error(511,"批量插入数据异常,请联系管理员");}}}

六、论文参考 

七、源码获取  

点赞、收藏、关注、评论啦。

联系即送开题报告和任务书,欢迎咨询

http://www.lryc.cn/news/443512.html

相关文章:

  • 2.《DevOps》系列K8S部署CICD流水线之部署NFS网络存储与K8S创建StorageClass
  • 【数据仓库】数据仓库常见的数据模型——维度模型
  • 【Kubernetes】常见面试题汇总(三十)
  • 【Web】PolarCTF2024秋季个人挑战赛wp
  • 职业技能大赛-自动化测试笔记分享-2
  • LeetCode讲解篇之1343. 大小为 K 且平均值大于等于阈值的子数组数目
  • 电子元件制造5G智能工厂物联数字孪生平台,推进制造业数字化转型
  • 【成品论文】2024年华为杯研赛E题25页高质量成品论文(后续会更新
  • 【后端】【语言】【python】python常见操作
  • 二叉树的链式结构和递归程序的递归流程图
  • 研究生如何利用 ChatGPT 帮助开展日常科研工作?
  • 【LLM学习之路】9月16日 第六天
  • Qt_窗口界面QMainWindow的介绍
  • 华为云centos7.9按装ambari 2.7.5 hostname 踩坑记录
  • 重生之我们在ES顶端相遇第15 章 - ES 的心脏-倒排索引
  • 金刚石切削工具学习笔记分享
  • 【文献阅读】基于原型的自适应方法增强未见到的构音障碍者的语音识别
  • Kafka-Go学习
  • Nginx反向代理出现502 Bad Gateway问题的解决方案
  • 通信工程学习:什么是VLAN虚拟局域网
  • python qt5 常用
  • 漏洞复现_永恒之蓝
  • PyCharm的使用
  • 浅谈C#之AutoResetEvent和ManualResetEvent
  • 【网络安全 | 靶机搭建】修改镜像源、更新软件源、安装git、更改python版本等
  • VuePress搭建文档网站/个人博客(详细配置)主题配置
  • Go语言笔记
  • java缓存介绍
  • react中diff的选择性子树渲染
  • Git clone远程仓库没有其他分支的问题