网站广告怎么赚钱,昆明做网站费用,提供网站建设课程代码,黄页88官网登录私信或留言即免费送开题报告和任务书#xff08;可指定任意题目#xff09;
目录
一、摘要
二、相关技术
三、系统设计
四、数据库设计
五、核心代码
六、论文参考
七、源码获取 一、摘要
互联网发展至今#xff0c;无论是其理论还是技术都已经成熟#xf…私信或留言即免费送开题报告和任务书可指定任意题目
目录
一、摘要
二、相关技术
三、系统设计
四、数据库设计
五、核心代码
六、论文参考
七、源码获取 一、摘要
互联网发展至今无论是其理论还是技术都已经成熟而且它广泛参与在社会中的方方面面。它让信息都可以通过网络传播搭配信息管理工具可以很好地为人们提供服务。针对信息管理混乱出错率高信息安全性差劳动强度大费时费力等问题采用智能无人仓库管理可以有效管理使信息管理能够更加科学和规范。
智能无人仓库管理在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;//级联表serviceAutowiredprivate YonghuService yonghuService;/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, 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);//字典表数据转换ListQuhuoshenqingView list (ListQuhuoshenqingView)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))));WrapperQuhuoshenqingEntity queryWrapper new EntityWrapperQuhuoshenqingEntity().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(quhuoshenqingEntitynull){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))));//根据字段查询是否有相同数据WrapperQuhuoshenqingEntity queryWrapper new EntityWrapperQuhuoshenqingEntity().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(quhuoshenqingEntitynull){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 {ListQuhuoshenqingEntity quhuoshenqingList new ArrayList();//上传的东西MapString, ListString 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{ListListString dataList PoiUtil.poiImport(file.getPath());//读取xls文件dataList.remove(0);//删除第一行因为第一行是提示for(ListString 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,批量插入数据异常请联系管理员);}}}六、论文参考 七、源码获取 点赞、收藏、关注、评论啦。 联系即送开题报告和任务书欢迎咨询