This commit is contained in:
wangliwen 2022-04-24 11:27:04 +08:00
parent 21e45f919b
commit 4fb3b092cf
2 changed files with 7 additions and 2 deletions

View File

@ -25,9 +25,9 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
private static Logger logger = LoggerFactory.getLogger(DataCenterListener.class);
@Value("${big_date.name}")
private static String bigDateDeptName;
private String bigDateDeptName;
@Value("${big_date.assignee_role_name}")
private static String roleName;
private String roleName;
@Autowired
private SysRoleService sysRoleService;
@ -52,6 +52,7 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
@Override
public void notify(DelegateTask delegateTask) {
logger.info("大数据局名称:" + bigDateDeptName);
SysDeptDTO deptDTO = sysDeptService.getByName(bigDateDeptName);
logger.info("deptDTOId:" + deptDTO.getId());
SysRoleDTO roleDTO = sysRoleService.getByName(roleName);

View File

@ -1,3 +1,7 @@
# 大数据部门相关配置
big_date:
name: 青岛市大数据发展管理局
assignee_role_name: 部门审批人
# Tomcat
server:
tomcat: