被覆盖?

This commit is contained in:
wangliwen 2022-05-20 18:24:21 +08:00
parent 2d40ab3eb1
commit 1091344da1
1 changed files with 8 additions and 2 deletions

View File

@ -128,14 +128,14 @@ public class ActTaskService extends BaseServiceImpl {
this.convertTaskInfo(task, dto);
ObjectMapper oMapper = new ObjectMapper();
Map<String, Object> processVariable = new LinkedHashMap<>();
processVariable.putAll(task.getProcessVariables());
processVariable.putAll(task.getTaskLocalVariables());
TAbilityApplicationDTO abilityApplicationDTO =
tAbilityApplicationService.get(Long.valueOf(dto.getBusinessKey()));
if (abilityApplicationDTO != null) {
Map<String, Object> variables = oMapper.convertValue(abilityApplicationDTO, Map.class);
processVariable.putAll(variables);
processVariable.putAll(task.getProcessVariables());
processVariable.putAll(task.getTaskLocalVariables());
dto.setParams(processVariable);
listDto.add(dto);
continue;
@ -144,6 +144,8 @@ public class ActTaskService extends BaseServiceImpl {
if (resourceMountApplyDTO != null) {
Map<String, Object> variables = oMapper.convertValue(resourceMountApplyDTO, Map.class);
processVariable.putAll(variables);
processVariable.putAll(task.getProcessVariables());
processVariable.putAll(task.getTaskLocalVariables());
dto.setParams(processVariable);
listDto.add(dto);
continue;
@ -152,6 +154,8 @@ public class ActTaskService extends BaseServiceImpl {
if (tDemandDataDTO != null) {
Map<String, Object> variables = oMapper.convertValue(tDemandDataDTO, Map.class);
processVariable.putAll(variables);
processVariable.putAll(task.getProcessVariables());
processVariable.putAll(task.getTaskLocalVariables());
dto.setParams(processVariable);
listDto.add(dto);
continue;
@ -160,6 +164,8 @@ public class ActTaskService extends BaseServiceImpl {
if (resourceDTO != null) {
Map<String, Object> variables = oMapper.convertValue(resourceDTO, Map.class);
processVariable.putAll(variables);
processVariable.putAll(task.getProcessVariables());
processVariable.putAll(task.getTaskLocalVariables());
dto.setParams(processVariable);
listDto.add(dto);
continue;