From cbbda2229aa100d74851eecd9fe0e498b73ea0d8 Mon Sep 17 00:00:00 2001 From: yinhuaiwei Date: Thu, 30 Oct 2025 17:46:24 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=B7=A1=E8=A7=86?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E5=88=97=E8=A1=A8=E9=A1=B5=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=80=9F=E5=BA=A6,=E5=8E=BB=E6=8E=89info?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/InspectionReportController.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/inspect-main/inspect-main-task/src/main/java/com/inspect/insreport/controller/InspectionReportController.java b/inspect-main/inspect-main-task/src/main/java/com/inspect/insreport/controller/InspectionReportController.java index c17a5e9..c58d51d 100644 --- a/inspect-main/inspect-main-task/src/main/java/com/inspect/insreport/controller/InspectionReportController.java +++ b/inspect-main/inspect-main-task/src/main/java/com/inspect/insreport/controller/InspectionReportController.java @@ -96,26 +96,8 @@ public class InspectionReportController extends BaseController { @GetMapping({"/list"}) public TableDataInfo list(InspectionReport inspectionReport) { startPage(); - Map imgMap = getImgMap(); List inspectionReportList = inspectionReportService.selectByAllList(inspectionReport); logger.info("[REPORT] inspectionReportList size: {}", inspectionReportList.size()); - InspectionReportData reportParam = new InspectionReportData(); - Map map = new HashMap<>(); - String[] reportIds = inspectionReportList.stream().map((item) -> item.getLineId().toString()).toArray(String[]::new); - map.put("reportIds", reportIds); - reportParam.setParams(map); - List inspectionReportDataList = inspectionReportDataService.selectInspectionReportDataList(reportParam); - for(InspectionReport report : inspectionReportList) { - List infoList = inspectionReportDataList.stream().filter(item -> item.getReportId().equals(report.getLineId())).collect(Collectors.toList()); - if(infoList != null && !infoList.isEmpty()) { - report.setInfo(infoList); - } - for (InspectionReportData reportData : inspectionReportDataList) { - if (imgMap != null && imgMap.get((reportData.getLineId()).trim()) != null) { - reportData.setInspectionImg(imgMap.get((reportData.getLineId()).trim())); - } - } - } return getDataTable(inspectionReportList); }