xy 1 week geleden
bovenliggende
commit
14f040e947

+ 1 - 1
tz-module-pressure2/tz-module-pressure2-biz/src/main/java/cn/start/tz/module/pressure2/service/boilertaskorder/BoilerTaskOrderInspectionServiceImpl.java

@@ -359,7 +359,7 @@ public class BoilerTaskOrderInspectionServiceImpl implements BoilerTaskOrderInsp
                                 .orElse(""));
                 boilerOpinionReportedExcelVo.setCheckDate(item.getCheckDate()==null||item.getCheckDate().getYear()==0?"":item.getCheckDate().getYear()+"-"+item.getCheckDate().getMonthValue()+"-"+item.getCheckDate().getDayOfMonth());
                 boilerOpinionReportedExcelVo.setDeptName(item.getDeptName());
-                boilerOpinionReportedExcelVo.setHandleUserNickname(item.getHandlerUserList()==null? "":item.getHandlerUserList().get(0).getNickname());
+                boilerOpinionReportedExcelVo.setHandleUserNickname(item.getHandlerUserList().isEmpty()? "":item.getHandlerUserList().get(0).getNickname());
                 list.add(boilerOpinionReportedExcelVo);
             }
         }

+ 1 - 1
tz-module-pressure2/tz-module-pressure2-biz/src/main/java/cn/start/tz/module/pressure2/service/pipetaskorder/PipeTaskOrderInspectionServiceImpl.java

@@ -369,7 +369,7 @@ public class PipeTaskOrderInspectionServiceImpl implements PipeTaskOrderInspecti
                         .orElse(""));
                 pipeOpinionReportedExcelVo.setCheckDate(item.getCheckDate()==null||item.getCheckDate().getYear()==0?"":item.getCheckDate().getYear()+"-"+item.getCheckDate().getMonthValue()+"-"+item.getCheckDate().getDayOfMonth());
                 pipeOpinionReportedExcelVo.setDeptName(item.getDeptName());
-                pipeOpinionReportedExcelVo.setHandleUserNickname(item.getHandlerUserList()==null?"":item.getHandlerUserList().get(0).getNickname());
+                pipeOpinionReportedExcelVo.setHandleUserNickname(item.getHandlerUserList().isEmpty()?"":item.getHandlerUserList().get(0).getNickname());
                 list.add(pipeOpinionReportedExcelVo);
             }
         }