fix: 立项变更节点6报错

This commit is contained in:
2023-11-22 16:35:21 +08:00
parent a95d233ba3
commit 287a9c3488
@@ -106,10 +106,13 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
public Map<String, Object> setVariables(InitChangeDataVO initChangeData) {
Map<String, Object> flowUserInfoVO = initChangeData.getFlowUserInfoVO();
HashMap<String, Object> map = new HashMap<>(flowUserInfoVO);
ProcessEsInitChange initChange = initChangeData.getDataList().get(0);
// 添加非列表类型的变量
actFlowCommonService.putIfNotNull(map, "applicationCategory", initChange.getApplicationCategory());
actFlowCommonService.putIfNotNull(map, "projectType", initChange.getProjectType());
List<ProcessEsInitChange> initChangeList = initChangeData.getDataList();
if (!initChangeList.isEmpty()) {
ProcessEsInitChange initChange = initChangeList.get(0);
// 添加非列表类型的变量
actFlowCommonService.putIfNotNull(map, "applicationCategory", initChange.getApplicationCategory());
actFlowCommonService.putIfNotNull(map, "projectType", initChange.getProjectType());
}
// 添加列表类型的变量
actFlowCommonService.convertAndPutList(map, flowUserInfoVO, "standardExpertList");
actFlowCommonService.convertAndPutList(map, flowUserInfoVO, "relatedUserList");