更新能力申请模型v3

This commit is contained in:
wangliwen 2022-08-25 09:00:21 +08:00
parent 94c012ee44
commit 12393ec5cc
2 changed files with 7 additions and 2 deletions

View File

@ -71,7 +71,7 @@ public class ApplyDistrictListener implements TaskListener, ExecutionListener, A
private void create(DelegateTask delegateTask) {
String assignee;
Map<String, Object> kv = delegateTask.getVariables();
if(kv.containsKey("userId")){
if (kv.containsKey("userId")) {
Long applyUserId = Long.valueOf(kv.get("userId").toString());
SysDeptDTO deptDTO = sysDeptService.get(sysUserService.get(applyUserId).getDeptId());
@ -99,7 +99,7 @@ public class ApplyDistrictListener implements TaskListener, ExecutionListener, A
assignee = defaultAssigneeRoleId;
}
logger.error("分配的用户id为:{}", assignee);
}else{
} else {
try {
logger.error("流程参数异常" + JSON.toJSONString(kv));
} catch (Exception exception) {

File diff suppressed because one or more lines are too long