二级审批为大数据时,直接审核通过

This commit is contained in:
wangliwen 2022-04-22 17:04:34 +08:00
parent 3decf28405
commit d7735a4fdf
1 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,12 @@ public class CorrectionListener implements TaskListener, ExecutionListener, Acti
}
if (resourceEntityDto != null && resourceEntityDto.getDeptId() != null) {
deptId = resourceEntityDto.getDeptId();
SysDeptDTO deptDTO =
sysDeptService.get(resourceEntityDto.getDeptId());
if (deptDTO != null && deptDTO.getName().equals("青岛市大数据发展管理局")) {
logger.error("第二级别审批仍然为 青岛市大数据发展管理局");
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
}
} else {
logger.error("表单内单位名称:" + abilityApplicationDTO.getUnit());
SysDeptDTO deptDTO = sysDeptService.getByName(abilityApplicationDTO.getUnit());