diff --git a/aucma-report/src/main/java/com/aucma/report/controller/QualityReportController.java b/aucma-report/src/main/java/com/aucma/report/controller/QualityReportController.java index bc0c045..eacd345 100644 --- a/aucma-report/src/main/java/com/aucma/report/controller/QualityReportController.java +++ b/aucma-report/src/main/java/com/aucma/report/controller/QualityReportController.java @@ -37,6 +37,17 @@ public class QualityReportController extends BaseController { return success(list); } + /** + * 质量缺陷统计分析明细 + * @param hashMap + * @return + */ + @GetMapping("/qualityDefectsDetailList") + public AjaxResult qualityDefectsDetailList(@RequestParam(required = false) Map hashMap) { + List> list = qualityReportService.qualityDefectsDetailList(hashMap); + return success(list); + } + /** * 少错件报表 * @param hashMap diff --git a/aucma-report/src/main/java/com/aucma/report/mapper/GeneralReportMapper.java b/aucma-report/src/main/java/com/aucma/report/mapper/GeneralReportMapper.java index 2a36869..2e83e4c 100644 --- a/aucma-report/src/main/java/com/aucma/report/mapper/GeneralReportMapper.java +++ b/aucma-report/src/main/java/com/aucma/report/mapper/GeneralReportMapper.java @@ -92,4 +92,11 @@ public interface GeneralReportMapper { * @return */ List> foamFillingRecordReportList(Map hashMap); + + /** + * 质量缺陷统计分析明细 + * @param hashMap + * @return + */ + List> qualityDefectsDetailList(Map hashMap); } diff --git a/aucma-report/src/main/java/com/aucma/report/service/IQualityReportService.java b/aucma-report/src/main/java/com/aucma/report/service/IQualityReportService.java index b6fcb08..3d0d70c 100644 --- a/aucma-report/src/main/java/com/aucma/report/service/IQualityReportService.java +++ b/aucma-report/src/main/java/com/aucma/report/service/IQualityReportService.java @@ -55,4 +55,11 @@ public interface IQualityReportService * @return */ List> pourRecordReportList(Map hashMap); + + /** + * 质量缺陷统计分析明细 + * @param hashMap + * @return + */ + List> qualityDefectsDetailList(Map hashMap); } 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 bdef6c1..b0ab9a2 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 @@ -82,4 +82,14 @@ public class QualityReportServiceImpl implements IQualityReportService { return reportMapper.pourRecordReportList(hashMap); } + /** + * 质量缺陷统计分析明细 + * @param hashMap + * @return + */ + @Override + public List> qualityDefectsDetailList(Map hashMap) { + return reportMapper.qualityDefectsDetailList(hashMap); + } + } diff --git a/aucma-report/src/main/resources/mapper/report/BoardReportMapper.xml b/aucma-report/src/main/resources/mapper/report/BoardReportMapper.xml index d618c21..6b09305 100644 --- a/aucma-report/src/main/resources/mapper/report/BoardReportMapper.xml +++ b/aucma-report/src/main/resources/mapper/report/BoardReportMapper.xml @@ -62,10 +62,10 @@ - SELECT * FROM VIEW_MATERIAL_COMPLETION - SELECT * FROM VIEW_MATERIAL_COMPLETION - + SELECT FY.FACTORY_NAME, + BPP.PRODUCT_LINE_NAME, + BP.PRODUCT_LINE_CODE, + BP.PRODUCT_LINE_NAME STATION_NAME, + COUNT(*) INSPECTION_NUMBER, + SUM(REWORK_NUMBER) REWORK_NUMBER, + ROUND((1 - SUM(REWORK_NUMBER) / COUNT(*)) * 100, 0) || '%' RATE + FROM REPORT_QUALITY_INSPECTION RQI + LEFT JOIN BASE_PRODUCTLINE BP ON BP.PRODUCT_LINE_CODE = RQI.STATION_CODE + LEFT JOIN BASE_PRODUCTLINE BPP ON BPP.PRODUCT_LINE_CODE = BP.PARENT_ID + LEFT JOIN BASE_FACTORY FY ON FY.FACTORY_CODE = BPP.PLANT_CODE + + + AND BPP.PRODUCT_LINE_CODE = #{PRODUCT_LINE_CODE} + + + AND BP.PRODUCT_LINE_CODE = #{STATION_CODE} + + + AND TO_CHAR(RQI.INSPECTOR_TIME, 'YYYY-MM-DD HH24:MI:SS') BETWEEN #{beginBeginTime} AND #{endBeginTime} + + + GROUP BY FY.FACTORY_NAME, BPP.PRODUCT_LINE_NAME, BP.PRODUCT_LINE_CODE, BP.PRODUCT_LINE_NAME + ORDER BY PRODUCT_LINE_CODE - SELECT * FROM VIEW_MATERIAL_COMPLETION - SELECT * FROM VIEW_MATERIAL_COMPLETION - SELECT * FROM VIEW_MATERIAL_COMPLETION - SELECT * FROM VIEW_PRODUCT_OFFLINE - SELECT * FROM VIEW_RECORD_TEMPERATURE - SELECT * FROM VIEW_PERFUSION_RECORD - + SELECT * + FROM VIEW_BOX_LASTSHOTRECORD + ORDER BY CREATE_TIME DESC + + +