计算机毕业设计 SpringBoot的一站式家装服务管理系统 Javaweb项目 Java实战项目 前后端分离 文档报告 代码讲解 安装调试

本文主要是介绍计算机毕业设计 SpringBoot的一站式家装服务管理系统 Javaweb项目 Java实战项目 前后端分离 文档报告 代码讲解 安装调试,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

🍊作者:计算机编程-吉哥
🍊简介:专业从事JavaWeb程序开发,微信小程序开发,定制化项目、 源码、代码讲解、文档撰写、ppt制作。做自己喜欢的事,生活就是快乐的。
🍊心愿:点赞 👍 收藏 ⭐评论 📝
🍅 文末获取源码联系

👇🏻 精彩专栏推荐订阅 👇🏻 不然下次找不到哟~
Java毕业设计项目~热门选题推荐《1000套》

目录

1.技术选型

2.数据库表结构

3.开发工具

4.功能

4.1【角色】

4.2【前台功能模块】

4.3【后台功能模块】

5.项目演示截图

5.1 首页

5.2 装修风格

5.3 主材

5.4 个人中心

5.5 预算

5.6 合同

5.7 工程安排

5.8 装修风格收藏

5.9 装修风格管理

5.10 预算管理

6.数据库文件设计

7.核心代码 

7.1 工程安排Controller

7.2 工程安排Service

7.3 工程安排ServiceImpl

7.4 工程安排DAO

8.参考文档


1.技术选型

springboot、mybatisplus、vue、elementui、html、css、js、mysql、jdk1.8

2.数据库表结构

15张 

3.开发工具

idea、navicat

4.功能

4.1【角色】

管理员、用户

4.2【前台功能模块】

  • 登录注册
  • 首页
  • 装修风格
  • 主材
  • 个人中心(个人中心、预约、合同、工程安排、售后服务、装修风格收藏、主材收藏)

4.3【后台功能模块】

  • 登录
  • 首页
  • 个人中心
  • 管理员管理
  • 基础数据管理
  • 装修风格管理
  • 主材管理
  • 用户管理
  • 装修管理
  • 轮播图管理

5.项目演示截图


5.1 首页

5.2 装修风格

 

5.3 主材

 

5.4 个人中心

 

5.5 预算

 

5.6 合同

 

5.7 工程安排

 

5.8 装修风格收藏

 

5.9 装修风格管理

 

5.10 预算管理

 

6.数据库文件设计

CREATE TABLE `config` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`name` varchar(100) DEFAULT NULL COMMENT '配置参数名称',`value` varchar(100) DEFAULT NULL COMMENT '配置参数值',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='配置文件';CREATE TABLE `dictionary` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`dic_code` varchar(200) DEFAULT NULL COMMENT '字段',`dic_name` varchar(200) DEFAULT NULL COMMENT '字段名',`code_index` int(11) DEFAULT NULL COMMENT '编码',`index_name` varchar(200) DEFAULT NULL COMMENT '编码名字  Search111 ',`super_id` int(11) DEFAULT NULL COMMENT '父字段id',`beizhu` varchar(200) DEFAULT NULL COMMENT '备注',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8 COMMENT='字典';CREATE TABLE `hetong` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`hetong_uuid_number` varchar(200) DEFAULT NULL COMMENT '合同编号',`hetong_name` varchar(200) DEFAULT NULL COMMENT '合同名称  Search111 ',`hetong_file` varchar(200) DEFAULT NULL COMMENT '合同文件',`hetong_types` int(11) DEFAULT NULL COMMENT '合同状态 Search111',`hetong_huafei` decimal(10,2) DEFAULT NULL COMMENT '合同金额',`hetong_weiyuejin` decimal(10,2) DEFAULT NULL COMMENT '违约金',`hetong_content` text COMMENT '合同内容',`insert_time` timestamp NULL DEFAULT NULL COMMENT '开具时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间  show3 listShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='合同';CREATE TABLE `shouhou` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`hetong_id` int(11) DEFAULT NULL COMMENT '合同',`shouhou_name` varchar(200) DEFAULT NULL COMMENT '售后服务名称  Search111 ',`shouhou_uuid_number` varchar(200) DEFAULT NULL COMMENT '售后服务编号',`shouhou_file` varchar(200) DEFAULT NULL COMMENT '售后服务附件',`shouhou_types` int(11) DEFAULT NULL COMMENT '服务类型 Search111',`fuwu_time` timestamp NULL DEFAULT NULL COMMENT '服务时间',`shouhou_content` text COMMENT '售后服务内容',`insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间  show3 listShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='售后服务';CREATE TABLE `token` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`userid` bigint(20) NOT NULL COMMENT '学生id',`username` varchar(100) NOT NULL COMMENT '学生名',`tablename` varchar(100) DEFAULT NULL COMMENT '表名',`role` varchar(100) DEFAULT NULL COMMENT '角色',`token` varchar(200) NOT NULL COMMENT '密码',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',`expiratedtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='token表';CREATE TABLE `users` (`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',`username` varchar(100) NOT NULL COMMENT '学生名',`password` varchar(100) NOT NULL COMMENT '密码',`role` varchar(100) DEFAULT '管理员' COMMENT '角色',`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '新增时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='管理员';CREATE TABLE `yonghu` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`username` varchar(200) DEFAULT NULL COMMENT '账户',`password` varchar(200) DEFAULT NULL COMMENT '密码',`yonghu_name` varchar(200) DEFAULT NULL COMMENT '用户姓名 Search111 ',`yonghu_phone` varchar(200) DEFAULT NULL COMMENT '用户手机号',`yonghu_id_number` varchar(200) DEFAULT NULL COMMENT '用户身份证号',`yonghu_photo` varchar(200) DEFAULT NULL COMMENT '用户头像',`sex_types` int(11) DEFAULT NULL COMMENT '性别',`fangyuan_types` int(11) DEFAULT NULL COMMENT '房源 Search111 ',`huxing_types` int(11) DEFAULT NULL COMMENT '户型 Search111 ',`yonghu_email` varchar(200) DEFAULT NULL COMMENT '用户邮箱',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='用户';CREATE TABLE `zhuangxiufengge_collection` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`zhuangxiufengge_id` int(11) DEFAULT NULL COMMENT '装修风格',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`zhuangxiufengge_collection_types` int(11) DEFAULT NULL COMMENT '类型',`insert_time` timestamp NULL DEFAULT NULL COMMENT '收藏时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 photoShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='装修风格收藏';CREATE TABLE `zhuangxiufengge_liuyan` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`zhuangxiufengge_id` int(11) DEFAULT NULL COMMENT '装修风格',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`zhuangxiufengge_liuyan_text` text COMMENT '留言内容',`insert_time` timestamp NULL DEFAULT NULL COMMENT '留言时间',`reply_text` text COMMENT '回复内容',`update_time` timestamp NULL DEFAULT NULL COMMENT '回复时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='装修风格留言';CREATE TABLE `zhucai` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键 ',`zhucai_name` varchar(200) DEFAULT NULL COMMENT '主材名称  Search111 ',`zhucai_uuid_number` varchar(200) DEFAULT NULL COMMENT '主材编号',`zhucai_photo` varchar(200) DEFAULT NULL COMMENT '主材照片',`zhucai_danwei` varchar(200) DEFAULT NULL COMMENT '单位',`zhucai_shengchanchangjia` varchar(200) DEFAULT NULL COMMENT '生产厂家',`zhucai_types` int(11) DEFAULT NULL COMMENT '主材类型 Search111',`pinpai_types` int(11) DEFAULT NULL COMMENT '品牌 Search111 ',`zhucai_jiage` decimal(10,2) DEFAULT NULL COMMENT '主材价格',`zhucai_clicknum` int(11) DEFAULT NULL COMMENT '主材热度',`zhucai_content` text COMMENT '主材详情',`shangxia_types` int(11) DEFAULT NULL COMMENT '是否上架 ',`zhucai_delete` int(11) DEFAULT NULL COMMENT '逻辑删除',`insert_time` timestamp NULL DEFAULT NULL COMMENT '录入时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间  show1 show2 photoShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='主材';CREATE TABLE `zhucai_collection` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`zhucai_id` int(11) DEFAULT NULL COMMENT '主材',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`zhucai_collection_types` int(11) DEFAULT NULL COMMENT '类型',`insert_time` timestamp NULL DEFAULT NULL COMMENT '收藏时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间 show3 photoShow',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='主材收藏';CREATE TABLE `zhucai_liuyan` (`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`zhucai_id` int(11) DEFAULT NULL COMMENT '主材',`yonghu_id` int(11) DEFAULT NULL COMMENT '用户',`zhucai_liuyan_text` text COMMENT '留言内容',`insert_time` timestamp NULL DEFAULT NULL COMMENT '留言时间',`reply_text` text COMMENT '回复内容',`update_time` timestamp NULL DEFAULT NULL COMMENT '回复时间',`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='主材留言';

7.核心代码 

7.1 工程安排Controller


package com.controller;/*** 工程安排* 后端接口* @author 计算机编程-吉哥* @email
*/
@RestController
@Controller
@RequestMapping("/gongchenganpai")
public class GongchenganpaiController {private static final Logger logger = LoggerFactory.getLogger(GongchenganpaiController.class);private static final String TABLE_NAME = "gongchenganpai";@Autowiredprivate GongchenganpaiService gongchenganpaiService;@Autowiredprivate TokenService tokenService;@Autowiredprivate DictionaryService dictionaryService;//字典@Autowiredprivate HetongService hetongService;//合同@Autowiredprivate ShouhouService shouhouService;//售后服务@Autowiredprivate YonghuService yonghuService;//用户@Autowiredprivate YusuanService yusuanService;//预算@Autowiredprivate ZhuangxiufenggeService zhuangxiufenggeService;//装修风格@Autowiredprivate ZhuangxiufenggeCollectionService zhuangxiufenggeCollectionService;//装修风格收藏@Autowiredprivate ZhuangxiufenggeLiuyanService zhuangxiufenggeLiuyanService;//装修风格留言@Autowiredprivate ZhucaiService zhucaiService;//主材@Autowiredprivate ZhucaiCollectionService zhucaiCollectionService;//主材收藏@Autowiredprivate ZhucaiLiuyanService zhucaiLiuyanService;//主材留言@Autowiredprivate UsersService usersService;//管理员/*** 后端列表*/@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"));CommonUtil.checkMap(params);PageUtils page = gongchenganpaiService.queryPage(params);//字典表数据转换List<GongchenganpaiView> list =(List<GongchenganpaiView>)page.getList();for(GongchenganpaiView 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);GongchenganpaiEntity gongchenganpai = gongchenganpaiService.selectById(id);if(gongchenganpai !=null){//entity转viewGongchenganpaiView view = new GongchenganpaiView();BeanUtils.copyProperties( gongchenganpai , view );//把实体数据重构到view中//级联表 用户//级联表YonghuEntity yonghu = yonghuService.selectById(gongchenganpai.getYonghuId());if(yonghu != null){BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "yonghuId"});//把级联的数据添加到view中,并排除id和创建时间字段,当前表的级联注册表view.setYonghuId(yonghu.getId());}//级联表 合同//级联表HetongEntity hetong = hetongService.selectById(gongchenganpai.getHetongId());if(hetong != null){BeanUtils.copyProperties( hetong , view ,new String[]{ "id", "createTime", "insertTime", "updateTime", "yonghuId"});//把级联的数据添加到view中,并排除id和创建时间字段,当前表的级联注册表view.setHetongId(hetong.getId());}//修改对应字典表字段dictionaryService.dictionaryConvert(view, request);return R.ok().put("data", view);}else {return R.error(511,"查不到数据");}}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody GongchenganpaiEntity gongchenganpai, HttpServletRequest request){logger.debug("save方法:,,Controller:{},,gongchenganpai:{}",this.getClass().getName(),gongchenganpai.toString());String role = String.valueOf(request.getSession().getAttribute("role"));if(false)return R.error(511,"永远不会进入");else if("用户".equals(role))gongchenganpai.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));Wrapper<GongchenganpaiEntity> queryWrapper = new EntityWrapper<GongchenganpaiEntity>().eq("yonghu_id", gongchenganpai.getYonghuId()).eq("hetong_id", gongchenganpai.getHetongId()).eq("gongchenganpai_name", gongchenganpai.getGongchenganpaiName()).eq("gongchenganpai_fuzeren", gongchenganpai.getGongchenganpaiFuzeren()).eq("gongchenganpai_lianxifangshi", gongchenganpai.getGongchenganpaiLianxifangshi()).eq("gongchenganpai_types", gongchenganpai.getGongchenganpaiTypes());logger.info("sql语句:"+queryWrapper.getSqlSegment());GongchenganpaiEntity gongchenganpaiEntity = gongchenganpaiService.selectOne(queryWrapper);if(gongchenganpaiEntity==null){gongchenganpai.setGongchenganpaiTypes(1);gongchenganpai.setInsertTime(new Date());gongchenganpai.setCreateTime(new Date());gongchenganpaiService.insert(gongchenganpai);return R.ok();}else {return R.error(511,"表中有相同数据");}}/*** 后端修改*/@RequestMapping("/update")public R update(@RequestBody GongchenganpaiEntity gongchenganpai, HttpServletRequest request) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException, InstantiationException {logger.debug("update方法:,,Controller:{},,gongchenganpai:{}",this.getClass().getName(),gongchenganpai.toString());GongchenganpaiEntity oldGongchenganpaiEntity = gongchenganpaiService.selectById(gongchenganpai.getId());//查询原先数据String role = String.valueOf(request.getSession().getAttribute("role"));
gongchenganpai.setYonghuId(Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId"))));if("".equals(gongchenganpai.getGongchenganpaiFile()) || "null".equals(gongchenganpai.getGongchenganpaiFile())){gongchenganpai.setGongchenganpaiFile(null);}gongchenganpaiService.updateById(gongchenganpai);//根据id更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Integer[] ids, HttpServletRequest request){logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());List<GongchenganpaiEntity> oldGongchenganpaiList =gongchenganpaiService.selectBatchIds(Arrays.asList(ids));//要删除的数据gongchenganpaiService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 批量上传*/@RequestMapping("/batchInsert")public R save( String fileName, HttpServletRequest request){logger.debug("batchInsert方法:,,Controller:{},,fileName:{}",this.getClass().getName(),fileName);Integer yonghuId = Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId")));SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");try {List<GongchenganpaiEntity> gongchenganpaiList = 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){//循环GongchenganpaiEntity gongchenganpaiEntity = new GongchenganpaiEntity();gongchenganpaiList.add(gongchenganpaiEntity);//把要查询是否重复的字段放入map中//工程安排编号if(seachFields.containsKey("gongchenganpaiUuidNumber")){List<String> gongchenganpaiUuidNumber = seachFields.get("gongchenganpaiUuidNumber");gongchenganpaiUuidNumber.add(data.get(0));//要改的}else{List<String> gongchenganpaiUuidNumber = new ArrayList<>();gongchenganpaiUuidNumber.add(data.get(0));//要改的seachFields.put("gongchenganpaiUuidNumber",gongchenganpaiUuidNumber);}}//查询是否重复//工程安排编号List<GongchenganpaiEntity> gongchenganpaiEntities_gongchenganpaiUuidNumber = gongchenganpaiService.selectList(new EntityWrapper<GongchenganpaiEntity>().in("gongchenganpai_uuid_number", seachFields.get("gongchenganpaiUuidNumber")));if(gongchenganpaiEntities_gongchenganpaiUuidNumber.size() >0 ){ArrayList<String> repeatFields = new ArrayList<>();for(GongchenganpaiEntity s:gongchenganpaiEntities_gongchenganpaiUuidNumber){repeatFields.add(s.getGongchenganpaiUuidNumber());}return R.error(511,"数据库的该表中的 [工程安排编号] 字段已经存在 存在数据为:"+repeatFields.toString());}gongchenganpaiService.insertBatch(gongchenganpaiList);return R.ok();}}}}catch (Exception e){e.printStackTrace();return R.error(511,"批量插入数据异常,请联系管理员");}}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params, HttpServletRequest request){logger.debug("list方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));CommonUtil.checkMap(params);PageUtils page = gongchenganpaiService.queryPage(params);//字典表数据转换List<GongchenganpaiView> list =(List<GongchenganpaiView>)page.getList();for(GongchenganpaiView c:list)dictionaryService.dictionaryConvert(c, request); //修改对应字典表字段return R.ok().put("data", page);}/*** 前端详情*/@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id, HttpServletRequest request){logger.debug("detail方法:,,Controller:{},,id:{}",this.getClass().getName(),id);GongchenganpaiEntity gongchenganpai = gongchenganpaiService.selectById(id);if(gongchenganpai !=null){//entity转viewGongchenganpaiView view = new GongchenganpaiView();BeanUtils.copyProperties( gongchenganpai , view );//把实体数据重构到view中//级联表YonghuEntity yonghu = yonghuService.selectById(gongchenganpai.getYonghuId());if(yonghu != null){BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createDate"});//把级联的数据添加到view中,并排除id和创建时间字段view.setYonghuId(yonghu.getId());}//级联表HetongEntity hetong = hetongService.selectById(gongchenganpai.getHetongId());if(hetong != null){BeanUtils.copyProperties( hetong , view ,new String[]{ "id", "createDate"});//把级联的数据添加到view中,并排除id和创建时间字段view.setHetongId(hetong.getId());}//修改对应字典表字段dictionaryService.dictionaryConvert(view, request);return R.ok().put("data", view);}else {return R.error(511,"查不到数据");}}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody GongchenganpaiEntity gongchenganpai, HttpServletRequest request){logger.debug("add方法:,,Controller:{},,gongchenganpai:{}",this.getClass().getName(),gongchenganpai.toString());Wrapper<GongchenganpaiEntity> queryWrapper = new EntityWrapper<GongchenganpaiEntity>().eq("yonghu_id", gongchenganpai.getYonghuId()).eq("hetong_id", gongchenganpai.getHetongId()).eq("gongchenganpai_uuid_number", gongchenganpai.getGongchenganpaiUuidNumber()).eq("gongchenganpai_name", gongchenganpai.getGongchenganpaiName()).eq("gongchenganpai_fuzeren", gongchenganpai.getGongchenganpaiFuzeren()).eq("gongchenganpai_lianxifangshi", gongchenganpai.getGongchenganpaiLianxifangshi()).eq("gongchenganpai_types", gongchenganpai.getGongchenganpaiTypes())
//            .notIn("gongchenganpai_types", new Integer[]{102});logger.info("sql语句:"+queryWrapper.getSqlSegment());GongchenganpaiEntity gongchenganpaiEntity = gongchenganpaiService.selectOne(queryWrapper);if(gongchenganpaiEntity==null){gongchenganpai.setInsertTime(new Date());gongchenganpai.setCreateTime(new Date());gongchenganpaiService.insert(gongchenganpai);return R.ok();}else {return R.error(511,"表中有相同数据");}}}

7.2 工程安排Service

package com.service;
/*** 工程安排 服务类* author 计算机编程-吉哥*/
public interface GongchenganpaiService extends IService<GongchenganpaiEntity> {/*** @param params 查询参数* @return 带分页的查询出来的数据*/PageUtils queryPage(Map<String, Object> params);}

7.3 工程安排ServiceImpl

package com.service.impl;/*** 工程安排 服务实现类* author 计算机编程-吉哥*/
@Service("gongchenganpaiService")
@Transactional
public class GongchenganpaiServiceImpl extends ServiceImpl<GongchenganpaiDao, GongchenganpaiEntity> implements GongchenganpaiService {@Overridepublic PageUtils queryPage(Map<String,Object> params) {Page<GongchenganpaiView> page =new Query<GongchenganpaiView>(params).getPage();page.setRecords(baseMapper.selectListView(page,params));return new PageUtils(page);}}

7.4 工程安排DAO

package com.dao;/*** 工程安排 Dao 接口** @author 计算机编程-吉哥*/
public interface GongchenganpaiDao extends BaseMapper<GongchenganpaiEntity> {List<GongchenganpaiView> selectListView(Pagination page,@Param("params")Map<String,Object> params);}

8.参考文档

 

你可能还有感兴趣的项目👇🏻👇🏻👇🏻

更多项目推荐:计算机毕业设计项目

如果大家有任何疑虑,请在下方咨询或评论

这篇关于计算机毕业设计 SpringBoot的一站式家装服务管理系统 Javaweb项目 Java实战项目 前后端分离 文档报告 代码讲解 安装调试的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/579555

相关文章

Java实现检查多个时间段是否有重合

《Java实现检查多个时间段是否有重合》这篇文章主要为大家详细介绍了如何使用Java实现检查多个时间段是否有重合,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录流程概述步骤详解China编程步骤1:定义时间段类步骤2:添加时间段步骤3:检查时间段是否有重合步骤4:输出结果示例代码结语作

Java中String字符串使用避坑指南

《Java中String字符串使用避坑指南》Java中的String字符串是我们日常编程中用得最多的类之一,看似简单的String使用,却隐藏着不少“坑”,如果不注意,可能会导致性能问题、意外的错误容... 目录8个避坑点如下:1. 字符串的不可变性:每次修改都创建新对象2. 使用 == 比较字符串,陷阱满

Java判断多个时间段是否重合的方法小结

《Java判断多个时间段是否重合的方法小结》这篇文章主要为大家详细介绍了Java中判断多个时间段是否重合的方法,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录判断多个时间段是否有间隔判断时间段集合是否与某时间段重合判断多个时间段是否有间隔实体类内容public class D

Python使用国内镜像加速pip安装的方法讲解

《Python使用国内镜像加速pip安装的方法讲解》在Python开发中,pip是一个非常重要的工具,用于安装和管理Python的第三方库,然而,在国内使用pip安装依赖时,往往会因为网络问题而导致速... 目录一、pip 工具简介1. 什么是 pip?2. 什么是 -i 参数?二、国内镜像源的选择三、如何

IDEA编译报错“java: 常量字符串过长”的原因及解决方法

《IDEA编译报错“java:常量字符串过长”的原因及解决方法》今天在开发过程中,由于尝试将一个文件的Base64字符串设置为常量,结果导致IDEA编译的时候出现了如下报错java:常量字符串过长,... 目录一、问题描述二、问题原因2.1 理论角度2.2 源码角度三、解决方案解决方案①:StringBui

Java覆盖第三方jar包中的某一个类的实现方法

《Java覆盖第三方jar包中的某一个类的实现方法》在我们日常的开发中,经常需要使用第三方的jar包,有时候我们会发现第三方的jar包中的某一个类有问题,或者我们需要定制化修改其中的逻辑,那么应该如何... 目录一、需求描述二、示例描述三、操作步骤四、验证结果五、实现原理一、需求描述需求描述如下:需要在

Java中ArrayList和LinkedList有什么区别举例详解

《Java中ArrayList和LinkedList有什么区别举例详解》:本文主要介绍Java中ArrayList和LinkedList区别的相关资料,包括数据结构特性、核心操作性能、内存与GC影... 目录一、底层数据结构二、核心操作性能对比三、内存与 GC 影响四、扩容机制五、线程安全与并发方案六、工程

部署Vue项目到服务器后404错误的原因及解决方案

《部署Vue项目到服务器后404错误的原因及解决方案》文章介绍了Vue项目部署步骤以及404错误的解决方案,部署步骤包括构建项目、上传文件、配置Web服务器、重启Nginx和访问域名,404错误通常是... 目录一、vue项目部署步骤二、404错误原因及解决方案错误场景原因分析解决方案一、Vue项目部署步骤

JavaScript中的reduce方法执行过程、使用场景及进阶用法

《JavaScript中的reduce方法执行过程、使用场景及进阶用法》:本文主要介绍JavaScript中的reduce方法执行过程、使用场景及进阶用法的相关资料,reduce是JavaScri... 目录1. 什么是reduce2. reduce语法2.1 语法2.2 参数说明3. reduce执行过程

如何使用Java实现请求deepseek

《如何使用Java实现请求deepseek》这篇文章主要为大家详细介绍了如何使用Java实现请求deepseek功能,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录1.deepseek的api创建2.Java实现请求deepseek2.1 pom文件2.2 json转化文件2.2