wenhongquan 3 gadi atpakaļ
vecāks
revīzija
7c61837fcc

+ 3 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TableDetectionServiceImpl.java

@@ -40,6 +40,9 @@ public class TableDetectionServiceImpl implements ITableDetectionService
     public TableDetection selectTableDetectionById(Long id)
     {
         TableDetection detection = tableDetectionMapper.selectTableDetectionById(id);
+        if(detection==null){
+            throw  new RuntimeException("未查到检测计划");
+        }
         TblDetectionLog detectionLog = new TblDetectionLog();
         detectionLog.setDetectionId(id);
         detection.setDetectionLogs( detectionLogService.selectTblDetectionLogList(detectionLog));

+ 3 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TblMaintainServiceImpl.java

@@ -39,6 +39,9 @@ public class TblMaintainServiceImpl implements ITblMaintainService
     public TblMaintain selectTblMaintainById(Long id)
     {
         TblMaintain maintain = tblMaintainMapper.selectTblMaintainById(id);
+        if(maintain==null){
+            throw  new RuntimeException("未查到养护计划");
+        }
         TblMaintainLog maintainLog = new TblMaintainLog();
         maintainLog.setMaintainId(id);
         maintain.setMaintainLogs( tblMaintainLogService.selectTblMaintainLogList(maintainLog));

+ 3 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TblTaskServiceImpl.java

@@ -41,6 +41,9 @@ public class TblTaskServiceImpl implements ITblTaskService
     public TblTask selectTblTaskByTaskId(Long taskId)
     {
         TblTask task = tblTaskMapper.selectTblTaskByTaskId(taskId);
+        if(task==null){
+            throw  new RuntimeException("未查到工单");
+        }
         TblTaskLog taskLog = new TblTaskLog();
         taskLog.setTaskId(taskId);
         task.setTblTaskLogList( tblTaskLogService.selectTblTaskLogList(taskLog));

BIN
ruoyi/uploadPath/upload/2022/06/27/archive_20220627160114A027.png


BIN
ruoyi/uploadPath/upload/2022/06/27/arrow@2x_20220627160540A028.png


BIN
ruoyi/uploadPath/upload/2022/06/28/archive(1)_20220628100415A001.png


BIN
ruoyi/uploadPath/upload/2022/06/28/archive@2x_20220628104417A004.png


BIN
ruoyi/uploadPath/upload/2022/06/28/arrow_20220628104411A003.png


BIN
ruoyi/uploadPath/upload/2022/06/28/co_organizer_20220628104430A005.png


BIN
ruoyi/uploadPath/upload/2022/06/28/应急仓库_路上 拷贝@2x_20220628100432A002.png