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}