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

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

时间:2024-09-21 16:50:21浏览次数:3  
标签:return 仓库 com 智能 源码 quhuoshenqingEntity import quhuoshenqing id

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

目录

一、摘要

二、相关技术

三、系统设计

四、数据库设计  

五、核心代码  

六、论文参考 

七、源码获取  


一、摘要

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

智能无人仓库管理在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);

    @Autowired
    private QuhuoshenqingService quhuoshenqingService;


    @Autowired
    private TokenService tokenService;
    @Autowired
    private DictionaryService dictionaryService;

    //级联表service
    @Autowired
    private 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转view
            QuhuoshenqingView 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,"批量插入数据异常,请联系管理员");
        }
    }

}

六、论文参考 

七、源码获取  

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

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

标签:return,仓库,com,智能,源码,quhuoshenqingEntity,import,quhuoshenqing,id
From: https://blog.csdn.net/2301_76166241/article/details/142419674

相关文章

  • 软件开发详解:通过源码搭建高效的食堂采购与供应链管理平台
    通过源码构建定制化的系统,能够让企业根据自身需求灵活调整功能,打造符合其业务流程的高效管理平台。接下来,小编将详细介绍如何通过源码搭建一套高效的食堂采购与供应链管理平台,并分析其在技术架构、功能实现及优化策略方面的关键点。 一、食堂采购与供应链管理平台的基本需求在构建......
  • useSyncExternalStoreExports 状态源码解释
    在本文中,我们将了解zustand如何在其[源代码]中使用usesyncexternalstoreexports。usesyncexternalstoreexports是从use-sync-external-store/shim/with-selector导入的。use-sync-external-store是react.usesyncexternalstore的向后兼容垫片,可与任何支持hooks的react......
  • 数据技术进化的见证者:从数据仓库到数据中台再到数据飞轮
    在探索数据的广袤海洋中,每一步技术的进化都似乎在向我们揭开未知的面纱,帮助我们以更精细化、智能化的方式处理海量信息。从固守旧有的数据仓库,发展至功能丰富的数据中台,再进化到实施自我增强的数据飞轮,我见证了数据技术如何赋能业务的每一次飞跃。一段旅程的起点:数据仓库数据仓库......
  • 数据的螺旋提升:从数据仓库到中台再到飞轮的媒体行业应用
    在这个数据驱动的世界里,媒体行业的运营模式和用户交互方式正经历着彻底的变革。随着数据技术的持续进步,从传统的数据仓库,到数据中台,再到现在被广泛讨论的数据飞轮,每一步都显著地推动了商业智能和决策方法的进化。通过具体的技术探索和行业案例,本文将深入讨论如何在媒体行业内应用这......
  • 第154期 智能手机图像去噪数据集的创新构建与实践运用(目标检测)
    亲爱的读者们,您是否在寻找某个特定的数据集,用于研究或项目实践?欢迎您在评论区留言,或者通过公众号私信告诉我,您想要的数据集的类型主题。小编会竭尽全力为您寻找,并在找到后第一时间与您分享。一、引言随着智能手机摄影技术的飞速发展,其成像质量已经逐渐接近甚至在某些场景下超越......
  • 【智能大数据分析 | 实验一】MapReduce实验:单词计数
    【作者主页】FrancekChen【专栏介绍】⌈⌈⌈智能大数据分析⌋......
  • EI, Scopus国际会议论文征稿:2024年第五届医学人工智能国际学术会议(ISAIMS 2024)
    连续四届EI检索|稳定ACM出版、EI检索|线上线下结合2024年第五届医学人工智能国际学术会议(ISAIMS2024)20245th InternationalSymposiumonArtificialIntelligenceforMedicalSciences大会官网:www.isaims.org 【论文投稿】武汉分会场大会时间:2024年10月25-27日......
  • 数据技术的演变:从数据仓库到数据中台,再到数据飞轮
    在数据驱动的现代商业环境中,企业对数据技术的需求与日俱增,从最初的数据仓库(DataWarehouse)到数据中台(DataMiddlePlatform),再到如今被广泛讨论的数据飞轮(DataFlywheel),每一步演变都不仅仅是技术的迭代,更是企业战略思考的深化。本文将结合具体业务场景探讨这一演进过程中的关键技术......
  • 数据技术进化之旅:从数据仓库到数据中台再到数据飞轮的见证
    在数字化时代,数据不仅仅是信息的堆积,更是推动业务增长的核心动力。本文从历史的长河中回望,梳理了从数据仓库、数据中台到数据飞轮的发展旅程,并在此基础上,深入探讨了如何在现实业务场景中应用这些技术,尤其是如何通过数据飞轮优化产品体验和驱动业务增长。数据仓库:基础设施的奠基早......
  • 数据技术进化之旅:从数据仓库到数据中台再到社交领域的数据飞轮
    在数字化时代,数据已成为企业最宝贵的资产之一。对于社交领域而言,数据技术的演进尤为关键——它不仅推动了业务模式的创新,更提升了用户体验。数据仓库:基础数据管理的萌芽数据仓库作为分析和报告的基础设施,使企业能够收集来自多个源的数据,并将其转换为统一格式,以支持决策制定。在社......