From 3b7cc80881668d33f073cd7788f7b34ee3b018e0 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Sun, 28 Apr 2024 14:43:56 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E5=90=8E=E7=AB=AF-?= =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E4=BA=BA=20=E4=BB=A3=E6=8A=A5=E4=BA=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1143434969055232]后端-上报人 代报人逻辑优化 http://192.168.0.96:8090/demo/rdm.html#/task-detail/939050947543040/939050947543050/1143434969055232 --- .../ProcessTaskCreatePublicServiceImpl.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/java/neatlogic/module/process/service/ProcessTaskCreatePublicServiceImpl.java b/src/main/java/neatlogic/module/process/service/ProcessTaskCreatePublicServiceImpl.java index e6f93285b..32bf11956 100644 --- a/src/main/java/neatlogic/module/process/service/ProcessTaskCreatePublicServiceImpl.java +++ b/src/main/java/neatlogic/module/process/service/ProcessTaskCreatePublicServiceImpl.java @@ -3,13 +3,9 @@ package neatlogic.module.process.service; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import neatlogic.framework.asynchronization.thread.NeatLogicThread; -import neatlogic.framework.asynchronization.threadlocal.UserContext; import neatlogic.framework.asynchronization.threadpool.CachedThreadPool; import neatlogic.framework.common.constvalue.GroupSearch; -import neatlogic.framework.common.constvalue.SystemUser; import neatlogic.framework.dao.mapper.UserMapper; -import neatlogic.framework.dto.AuthenticationInfoVo; -import neatlogic.framework.dto.JwtVo; import neatlogic.framework.dto.UserVo; import neatlogic.framework.exception.user.UserNotFoundException; import neatlogic.framework.file.dao.mapper.FileMapper; @@ -344,6 +340,7 @@ public class ProcessTaskCreatePublicServiceImpl implements ProcessTaskCreatePubl } } + //代报人,支持代报人uuid和代报人id入参 String reporter = paramObj.getString("reporter"); if (StringUtils.isNotBlank(reporter)) { UserVo reporterUserVo = userMapper.getUserByUuid(reporter); @@ -352,11 +349,12 @@ public class ProcessTaskCreatePublicServiceImpl implements ProcessTaskCreatePubl if (reporterUserVo == null) { throw new UserNotFoundException(reporter); } - reporterUserVo = userMapper.getUserByUuid(reporterUserVo.getUuid()); + paramObj.put("reporter", reporterUserVo.getUuid()); +// reporterUserVo = userMapper.getUserByUuid(reporterUserVo.getUuid()); } - AuthenticationInfoVo authenticationInfoVo = authenticationInfoService.getAuthenticationInfo(userVo.getUuid()); - JwtVo jwtVo = UserContext.get().getJwtVo(); - UserContext.get().init(reporterUserVo, authenticationInfoVo, SystemUser.SYSTEM.getTimezone()).setJwtVo(jwtVo); +// AuthenticationInfoVo authenticationInfoVo = authenticationInfoService.getAuthenticationInfo(userVo.getUuid()); +// JwtVo jwtVo = UserContext.get().getJwtVo(); +// UserContext.get().init(reporterUserVo, authenticationInfoVo, SystemUser.SYSTEM.getTimezone()).setJwtVo(jwtVo); } Long processTaskId = null; Integer isAsync = paramObj.getInteger("isAsync"); -- Gitee