Commit e1676967 by 刘鑫

fix: 工程师业务属性不存在时 空指针异常

1 parent b194398c
...@@ -118,7 +118,7 @@ public class EngineerGanttServiceImpl implements EngineerGanttService { ...@@ -118,7 +118,7 @@ public class EngineerGanttServiceImpl implements EngineerGanttService {
EngineerBusinessEntity engineerBusinessEntity = engineerBusinessDao.getByEngineerCode(engineerCode); EngineerBusinessEntity engineerBusinessEntity = engineerBusinessDao.getByEngineerCode(engineerCode);
if (Objects.nonNull(engineerBusinessEntity)) { if (Objects.nonNull(engineerBusinessEntity)) {
engineer.setStartTime(String.format("%s %s", reqDTO.getDate(), engineerBusinessEntity.getWorkOn())) engineer.setStartTime(String.format("%s %s", reqDTO.getDate(), engineerBusinessEntity.getWorkOn()))
.setEndTime(String.format("%s %s", reqDTO.getDate(), engineerBusinessEntity.getWorkOff())) .setEndTime(String.format("%s %s", reqDTO.getDate(), engineerBusinessEntity.getWorkOff()));
} }
CapacityEngineerStatEntity capacityEngineerStat = capacityEngineerStatDao.getByWorkdayAndEngineerCode(reqDTO.getDate(), engineerCode); CapacityEngineerStatEntity capacityEngineerStat = capacityEngineerStatDao.getByWorkdayAndEngineerCode(reqDTO.getDate(), engineerCode);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!