change - 返修率报表:高压,低压,内胆检漏工位只统计带“漏”字

master
yinq 8 months ago
parent 1b55fe0e78
commit 85476553be

@ -145,7 +145,13 @@ public class QualityReportServiceImpl implements IQualityReportService {
@Override
public List<RepairRateReport> 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);

@ -514,6 +514,9 @@
#{stationCode}
</foreach>
</if>
<if test="leakFlag != null">
AND RQI.QUALITY_DEFECT_NAME LIKE '%漏%'
</if>
<if test="beginBeginTime != null and beginBeginTime != '' and endBeginTime != null and endBeginTime != ''">
AND TO_CHAR(RQI.INSPECTOR_TIME, 'YYYY-MM-DD') BETWEEN #{beginBeginTime} AND #{endBeginTime}
</if>

Loading…
Cancel
Save