fix: 立项变更节点6报错
This commit is contained in:
+7
-4
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user