|
@@ -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));
|