npe 管理员的部门id不存在的情况
This commit is contained in:
parent
fd645cffeb
commit
dd261257b8
|
@ -31,7 +31,7 @@ import java.util.Map;
|
|||
@RestController
|
||||
@RequestMapping("/demand_v2/center")
|
||||
public class DemandDataController {
|
||||
private static Logger logger = LoggerFactory.getLogger(ResourceMountController.class);
|
||||
private static Logger logger = LoggerFactory.getLogger(DemandDataController.class);
|
||||
|
||||
@Autowired
|
||||
private ActProcessService actProcessService;
|
||||
|
|
|
@ -119,7 +119,7 @@ public class DemandDataListener implements TaskListener, ExecutionListener, Acti
|
|||
JsonElement jsonElement = gson.toJsonTree(kv);
|
||||
TDemandDataDTO demandDataDTO = gson.fromJson(jsonElement, TDemandDataDTO.class);
|
||||
|
||||
if (demandDataDTO != null) {
|
||||
if (demandDataDTO != null && demandDataDTO.getApplyUserDeptId() != null) {
|
||||
logger.error(JSONObject.toJSONString(demandDataDTO));
|
||||
SysDeptDTO deptDTO =
|
||||
sysDeptService.get(Long.valueOf(demandDataDTO.getApplyUserDeptId()));
|
||||
|
|
Loading…
Reference in New Issue