From 85476553be6629951836f013556e920969102a90 Mon Sep 17 00:00:00 2001 From: yinq Date: Thu, 28 Mar 2024 18:26:14 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E8=BF=94=E4=BF=AE=E7=8E=87?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8:=E9=AB=98=E5=8E=8B=EF=BC=8C=E4=BD=8E?= =?UTF-8?q?=E5=8E=8B=EF=BC=8C=E5=86=85=E8=83=86=E6=A3=80=E6=BC=8F=E5=B7=A5?= =?UTF-8?q?=E4=BD=8D=E5=8F=AA=E7=BB=9F=E8=AE=A1=E5=B8=A6=E2=80=9C=E6=BC=8F?= =?UTF-8?q?=E2=80=9D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/service/impl/QualityReportServiceImpl.java | 8 +++++++- .../main/resources/mapper/report/GeneralReportMapper.xml | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/aucma-report/src/main/java/com/aucma/report/service/impl/QualityReportServiceImpl.java b/aucma-report/src/main/java/com/aucma/report/service/impl/QualityReportServiceImpl.java index 088ea71..c61447c 100644 --- a/aucma-report/src/main/java/com/aucma/report/service/impl/QualityReportServiceImpl.java +++ b/aucma-report/src/main/java/com/aucma/report/service/impl/QualityReportServiceImpl.java @@ -145,7 +145,13 @@ public class QualityReportServiceImpl implements IQualityReportService { @Override public List repairRateReportList(Map hashMap) { if (hashMap.containsKey("stationCodeList")){ - hashMap.put("stationCodeList", String.valueOf(hashMap.get("stationCodeList")).split(",")); + String[] stationCodeLists = String.valueOf(hashMap.get("stationCodeList")).split(","); + hashMap.put("stationCodeList", stationCodeLists); + for (String station : stationCodeLists) { + if (station.equals("2001") || station.equals("2006")|| station.equals("2007")){ + hashMap.put("leakFlag", "1"); + } + } }else { String[] stationCodeLists = {"null"}; hashMap.put("stationCodeList", stationCodeLists); diff --git a/aucma-report/src/main/resources/mapper/report/GeneralReportMapper.xml b/aucma-report/src/main/resources/mapper/report/GeneralReportMapper.xml index a19c211..11fb8ac 100644 --- a/aucma-report/src/main/resources/mapper/report/GeneralReportMapper.xml +++ b/aucma-report/src/main/resources/mapper/report/GeneralReportMapper.xml @@ -514,6 +514,9 @@ #{stationCode} + + AND RQI.QUALITY_DEFECT_NAME LIKE '%漏%' + AND TO_CHAR(RQI.INSPECTOR_TIME, 'YYYY-MM-DD') BETWEEN #{beginBeginTime} AND #{endBeginTime}