From 8c0b5b30e5200e7bd45aa34507c3623e17fcce91 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期四, 24 八月 2023 13:47:24 +0800 Subject: [PATCH] 新增小程序积分列表 修改积分发放流程 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceServiceImpl.java | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceServiceImpl.java index 653ecc7..8eee21d 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceServiceImpl.java @@ -294,19 +294,15 @@ comFmsService.setUserId(userInfo.getUserId()); comFmsService.setUserName(userInfo.getNickName()); comFmsService.setPhone(userInfo.getPhone()); - List<ComFmsService> list=new ArrayList<>(); - list.add(comFmsService); - int num = this.baseMapper.insertBatch(list); + int num = this.baseMapper.addBracelet(comFmsService); if (num > 0) { ComFmsServiceRecord comFmsServiceRecord = new ComFmsServiceRecord(); - comFmsServiceRecord.setServiceId(comFmsService.getId()); + comFmsServiceRecord.setServiceId(Long.valueOf(baseMapper.getLastId())); comFmsServiceRecord.setContent(adminDTO.getServiceContent()); comFmsServiceRecord.setImage(adminDTO.getServiceImage()); comFmsServiceRecord.setStage(ComFmsServiceRecord.Stage.TJFWSQ); comFmsServiceRecord.setCreatedBy(userInfo.getUserId()); - List<ComFmsServiceRecord> lsit=new ArrayList<>(); - lsit.add(comFmsServiceRecord); - comFmsServiceRecordDAO.insertBatch(lsit); + comFmsServiceRecordDAO.insertOneBatch(comFmsServiceRecord); return R.ok(); } return R.fail("操作失败,请重新尝试"); -- Gitblit v1.7.1