fix: 修复三个审批流程发起报错问题
修改了CarEsApprovalServiceImpl、MachineEsApprovalServiceImpl和SpecialEsApprovalServiceImpl中的用户信息处理逻辑。将MAIN_DRAFT_USER的值从userInfoMap复制到result映射中,而不是直接在userInfoMap中进行操作,优化了多选人员转换为List并放入map的处理流程。
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ public class CarEsApprovalServiceImpl extends ServiceImpl<ProcessCarEsApprovalMa
|
|||||||
Map<String, Object> userInfoMap = processInfoVO.getUserInfoMap();
|
Map<String, Object> userInfoMap = processInfoVO.getUserInfoMap();
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
// 将所有多选人员转换为List后放入map中
|
// 将所有多选人员转换为List后放入map中
|
||||||
userInfoMap.put(MAIN_DRAFT_USER, userInfoMap.get(MAIN_DRAFT_USER));
|
result.put(MAIN_DRAFT_USER, userInfoMap.get(MAIN_DRAFT_USER));
|
||||||
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_ONE_List);
|
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_ONE_List);
|
||||||
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_TWO_List);
|
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_TWO_List);
|
||||||
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_THREE_List);
|
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_THREE_List);
|
||||||
|
|||||||
+1
-1
@@ -116,7 +116,7 @@ public class MachineEsApprovalServiceImpl extends ServiceImpl<ProcessMachineEsAp
|
|||||||
Map<String, Object> userInfoMap = processInfoVO.getUserInfoMap();
|
Map<String, Object> userInfoMap = processInfoVO.getUserInfoMap();
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
// 将所有多选人员转换为List后放入map中
|
// 将所有多选人员转换为List后放入map中
|
||||||
userInfoMap.put(MAIN_DRAFT_USER, userInfoMap.get(MAIN_DRAFT_USER));
|
result.put(MAIN_DRAFT_USER, userInfoMap.get(MAIN_DRAFT_USER));
|
||||||
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_ONE_List);
|
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_ONE_List);
|
||||||
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_TWO_List);
|
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_TWO_List);
|
||||||
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_THREE_List);
|
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_THREE_List);
|
||||||
|
|||||||
+1
-1
@@ -116,7 +116,7 @@ public class SpecialEsApprovalServiceImpl extends ServiceImpl<ProcessSpecialEsAp
|
|||||||
Map<String, Object> userInfoMap = processInfoVO.getUserInfoMap();
|
Map<String, Object> userInfoMap = processInfoVO.getUserInfoMap();
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
// 将所有多选人员转换为List后放入map中
|
// 将所有多选人员转换为List后放入map中
|
||||||
userInfoMap.put(MAIN_DRAFT_USER, userInfoMap.get(MAIN_DRAFT_USER));
|
result.put(MAIN_DRAFT_USER, userInfoMap.get(MAIN_DRAFT_USER));
|
||||||
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_ONE_List);
|
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_ONE_List);
|
||||||
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_TWO_List);
|
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_TWO_List);
|
||||||
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_THREE_List);
|
actFlowCommonService.convertAndPutList(result, userInfoMap, USER_THREE_List);
|
||||||
|
|||||||
Reference in New Issue
Block a user