From b3ad0200bb7dc1d9c2bf75edb14de3f4fde2c40d Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期二, 04 六月 2024 14:02:14 +0800 Subject: [PATCH] 花城 议事投票评论提交报错 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceServiceImpl.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 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 d1c4af4..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 @@ -292,17 +292,17 @@ comFmsService.setCreatedBy(userInfo.getUserId()); comFmsService.setUpdatedBy(userInfo.getUserId()); comFmsService.setUserId(userInfo.getUserId()); - comFmsService.setUserName(userInfo.getName()); + comFmsService.setUserName(userInfo.getNickName()); comFmsService.setPhone(userInfo.getPhone()); - int num = this.baseMapper.insert(comFmsService); + 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()); - comFmsServiceRecordDAO.insert(comFmsServiceRecord); + comFmsServiceRecordDAO.insertOneBatch(comFmsServiceRecord); return R.ok(); } return R.fail("操作失败,请重新尝试"); -- Gitblit v1.7.1