Browse Source

/*获取任务归档报告接口getInfo空指针异常问题。*/

master
htjcAdmin 7 months ago
parent
commit
026e791a83
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      inspect-main/inspect-main-task/src/main/java/com/inspect/insreport/controller/InspectionReportController.java

+ 3
- 0
inspect-main/inspect-main-task/src/main/java/com/inspect/insreport/controller/InspectionReportController.java View File

@ -139,6 +139,9 @@ public class InspectionReportController extends BaseController {
public AjaxResult getInfo(@PathVariable("lineId") Long lineId) {
Map<String, String> map = getImgMap();
InspectionReport inspectionReport = inspectionReportService.selectInspectionReportByLineId(lineId);
if(inspectionReport == null) {
return AjaxResult.error("报告不存在: " + lineId);
}
InspectionReportData inspectionReportData = new InspectionReportData();
inspectionReportData.setReportId(String.valueOf(lineId));
List<InspectionReportData> inspectionReportDataList =


Loading…
Cancel
Save