From 0c8e628c5e23fdf1b75b17fcf7dd768a0918050b Mon Sep 17 00:00:00 2001 From: 张天森 <1292933220@qq.com> Date: 星期二, 18 十月 2022 10:17:20 +0800 Subject: [PATCH] 三说会堂事件操作权限处理 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComFmsServiceServiceImpl.java | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 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 9cfb598..f27f68d 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 @@ -124,14 +124,12 @@ comFmsService.setUpdatedBy(adminDTO.getUpdatedBy()); int num = this.baseMapper.updateById(comFmsService); if (num > 0) { - if (adminDTO.getIsPass()) { - ComFmsServiceRecord comFmsServiceRecord = new ComFmsServiceRecord(); - comFmsServiceRecord.setServiceId(comFmsService.getId()); - comFmsServiceRecord.setContent(adminDTO.getContent()); - comFmsServiceRecord.setStage(ComFmsServiceRecord.Stage.SHTG); - comFmsServiceRecord.setCreatedBy(adminDTO.getUpdatedBy()); - comFmsServiceRecordDAO.insert(comFmsServiceRecord); - } + ComFmsServiceRecord comFmsServiceRecord = new ComFmsServiceRecord(); + comFmsServiceRecord.setServiceId(comFmsService.getId()); + comFmsServiceRecord.setContent(adminDTO.getContent()); + comFmsServiceRecord.setStage(adminDTO.getIsPass() ? ComFmsServiceRecord.Stage.SHTG : ComFmsServiceRecord.Stage.HSBTG); + comFmsServiceRecord.setCreatedBy(adminDTO.getUpdatedBy()); + comFmsServiceRecordDAO.insert(comFmsServiceRecord); return R.ok(); } return R.fail("操作失败,请重新尝试"); @@ -294,7 +292,7 @@ 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); if (num > 0) { -- Gitblit v1.7.1