From 00ef2e4c4c6a85af857be272cf74a7e43e6517f0 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期日, 16 三月 2025 03:42:16 +0800 Subject: [PATCH] 修改诉求流程和新增评价功能 --- springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintFlowServiceImpl.java | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintFlowServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintFlowServiceImpl.java index a11c5bb..ab838b7 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintFlowServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintFlowServiceImpl.java @@ -37,14 +37,13 @@ private final UserService userService; @Override - public void createFlow(Long complaintId , Long superiorId, Integer reportType, Integer type, Long userId) { - - - String name = getFlowName(reportType, superiorId); + public void createFlow(ComplaintAuditRecord record, Integer type,Long userId) { + //获取流程部门名称 + String name = getFlowName(record.getReportType(), record.getSuperiorId()); ComplaintFlow complaintFlow = new ComplaintFlow(); - complaintFlow.setComplaintId(complaintId); - complaintFlow.setLevel(reportType); + complaintFlow.setComplaintId(record.getComplaintId()); + complaintFlow.setLevel(record.getReportType()); complaintFlow.setName(name); complaintFlow.setCreateTime(new Date(System.currentTimeMillis())); complaintFlow.setType(type); @@ -65,10 +64,10 @@ name = bcRegion.getRegionName(); } else { R<LoginUserInfoVO> userR = userService.getUserInfoByUserId(String.valueOf(superiorId)); - if (R.isOk(userR)) { + if (!R.isOk(userR)) { throw new ServiceException("获取用户信息失败"); } - name = userR.getData().getNickName(); + name = null == userR.getData() ? "" : userR.getData().getNickName(); } return name; } -- Gitblit v1.7.1