日志级别修改
This commit is contained in:
parent
e0783aac0a
commit
b6d3aff11e
|
@ -65,7 +65,7 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
|
|||
|
||||
@Override
|
||||
public void notify(DelegateTask delegateTask) {
|
||||
logger.info("事件类型:" + delegateTask.getEventName());
|
||||
logger.error("事件类型:" + delegateTask.getEventName());
|
||||
final String eventName = delegateTask.getEventName();
|
||||
switch (eventName) {
|
||||
case EVENTNAME_CREATE:
|
||||
|
@ -75,7 +75,7 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
|
|||
logger.error("----------------------大数据审批通过-complete------------------------------");
|
||||
break;
|
||||
default:
|
||||
logger.info("未处理该事件:" + eventName);
|
||||
logger.error("未处理该事件:" + eventName);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,19 +95,19 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
|
|||
* @param delegateTask
|
||||
*/
|
||||
private void createEvent(DelegateTask delegateTask) {
|
||||
logger.info("大数据局名称:" + bigDateDeptName);
|
||||
logger.error("大数据局名称:" + bigDateDeptName);
|
||||
SysDeptDTO deptDTO = sysDeptService.getByName(bigDateDeptName);
|
||||
logger.info("deptDTOId:" + deptDTO.getId());
|
||||
logger.error("deptDTOId:" + deptDTO.getId());
|
||||
SysRoleDTO roleDTO = sysRoleService.getByName(roleName);
|
||||
logger.info("roleDTOId:" + roleDTO.getId());
|
||||
logger.error("roleDTOId:" + roleDTO.getId());
|
||||
SysUserDTO userDTO = sysUserService.getByDeptIdAndRoleId(deptDTO.getId(), roleDTO.getId());
|
||||
|
||||
if (userDTO != null) {
|
||||
logger.info("审批人id:" + userDTO.getId());
|
||||
logger.error("审批人id:" + userDTO.getId());
|
||||
taskService.setAssignee(delegateTask.getId(), userDTO.getId().toString());
|
||||
} else {
|
||||
delegateTask.setAssignee("1516728698224427010");
|
||||
logger.info("未查到该部门对应 " + roleName);
|
||||
logger.error("未查到该部门对应 " + roleName);
|
||||
}
|
||||
|
||||
Map<String, Object> kv = delegateTask.getVariables();
|
||||
|
|
Loading…
Reference in New Issue