Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-08-02 15:41:23 +08:00
commit f4a36e8a22
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ public class ActTaskService extends BaseServiceImpl {
if (task.getProcessVariables().containsKey("tAbilityApplicationDTOList")) {
processVariable.putAll(task.getProcessVariables());
dto.setParams(processVariable);
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(task.getProcessVariables().get(0)));
List<TAbilityApplicationDTO> dtoList = (List<TAbilityApplicationDTO>) task.getProcessVariables().get("tAbilityApplicationDTOList");
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(dtoList.get(0)));
if (jsonObject != null) {
dto.setUserName(jsonObject.containsKey("user") ? jsonObject.getString("user") : "");
}