sql 生成异常
This commit is contained in:
parent
63a0c20343
commit
fec96155a0
|
@ -29,10 +29,10 @@ public class TDemandDataServiceImpl extends CrudServiceImpl<TDemandDataDao, TDem
|
|||
wrapper.eq("creator", params.get("creator"));
|
||||
break;
|
||||
case "flag":
|
||||
wrapper.eq("flag", params.get("flag"));
|
||||
wrapper.eq("flag", Integer.valueOf(params.get("flag").toString()));
|
||||
break;
|
||||
case "detailsType":
|
||||
wrapper.eq("detailsType", params.get("detailsType"));
|
||||
wrapper.eq("details_type", params.get("detailsType").toString());
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -60,7 +60,7 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
|||
@Override
|
||||
public void notify(DelegateTask delegateTask) {
|
||||
logger.error("----------------------进入资源所有者节点---------------------------");
|
||||
logger.info("事件类型:" + delegateTask.getEventName());
|
||||
logger.error("事件类型:" + delegateTask.getEventName());
|
||||
SysRoleDTO roleDTO = sysRoleService.getByName(roleName);
|
||||
logger.error("roleDTOId:" + roleDTO.getId());
|
||||
final String eventName = delegateTask.getEventName();
|
||||
|
@ -69,7 +69,7 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
|||
create(delegateTask, roleDTO);
|
||||
break;
|
||||
default:
|
||||
logger.info("未处理该事件:" + eventName);
|
||||
logger.error("未处理该事件:" + eventName);
|
||||
}
|
||||
logger.error("-----------------------结束资源所有者节点---------------------------");
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
|||
Gson gson = new Gson();
|
||||
JsonElement jsonElement = gson.toJsonTree(kv);
|
||||
TResourceMountApplyDTO resourceMountApplyDTO = gson.fromJson(jsonElement, TResourceMountApplyDTO.class);
|
||||
logger.info(JSONObject.toJSONString(resourceMountApplyDTO));
|
||||
logger.error(JSONObject.toJSONString(resourceMountApplyDTO));
|
||||
ResourceDTO re = resourceMountApplyDTO.getResourceDTO();
|
||||
if (re.getDeptId() != null) {
|
||||
SysDeptDTO deptDTO =
|
||||
|
@ -121,17 +121,17 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
|||
taskService.setAssignee(delegateTask.getId(), "1513432847327199233");
|
||||
}
|
||||
} else {
|
||||
logger.info("大数据局名称:" + bigDateDeptName);
|
||||
logger.error("大数据局名称:" + bigDateDeptName);
|
||||
SysDeptDTO deptDTO = sysDeptService.getByName(bigDateDeptName);
|
||||
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 {
|
||||
taskService.setAssignee(delegateTask.getId(), "1513432847327199233");
|
||||
logger.info("未查到大数据部门对应 " + roleName);
|
||||
logger.error("未查到大数据部门对应 " + roleName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue