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) {
|
public Map<String, Object> setVariables(InitChangeDataVO initChangeData) {
|
||||||
Map<String, Object> flowUserInfoVO = initChangeData.getFlowUserInfoVO();
|
Map<String, Object> flowUserInfoVO = initChangeData.getFlowUserInfoVO();
|
||||||
HashMap<String, Object> map = new HashMap<>(flowUserInfoVO);
|
HashMap<String, Object> map = new HashMap<>(flowUserInfoVO);
|
||||||
ProcessEsInitChange initChange = initChangeData.getDataList().get(0);
|
List<ProcessEsInitChange> initChangeList = initChangeData.getDataList();
|
||||||
// 添加非列表类型的变量
|
if (!initChangeList.isEmpty()) {
|
||||||
actFlowCommonService.putIfNotNull(map, "applicationCategory", initChange.getApplicationCategory());
|
ProcessEsInitChange initChange = initChangeList.get(0);
|
||||||
actFlowCommonService.putIfNotNull(map, "projectType", initChange.getProjectType());
|
// 添加非列表类型的变量
|
||||||
|
actFlowCommonService.putIfNotNull(map, "applicationCategory", initChange.getApplicationCategory());
|
||||||
|
actFlowCommonService.putIfNotNull(map, "projectType", initChange.getProjectType());
|
||||||
|
}
|
||||||
// 添加列表类型的变量
|
// 添加列表类型的变量
|
||||||
actFlowCommonService.convertAndPutList(map, flowUserInfoVO, "standardExpertList");
|
actFlowCommonService.convertAndPutList(map, flowUserInfoVO, "standardExpertList");
|
||||||
actFlowCommonService.convertAndPutList(map, flowUserInfoVO, "relatedUserList");
|
actFlowCommonService.convertAndPutList(map, flowUserInfoVO, "relatedUserList");
|
||||||
|
|||||||
Reference in New Issue
Block a user