From b6b5a3a4740b7e624844fb4db9200f969ec655be Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 5 Jan 2024 08:56:51 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E9=A1=B5=E9=9D=A2=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/base/BaseDeviceLedgerMapper.xml | 1 + .../mapper/base/BaseProcessStationMapper.xml | 3 +- .../base/StationDefectRelationMapper.xml | 1 + .../service/impl/BaseBomInfoServiceImpl.java | 4 +- .../impl/ProductPlanInfoServiceImpl.java | 2 +- .../mapper/production/BaseBomInfoMapper.xml | 21 +++-- .../domain/ReportQualityInspection.java | 46 +++++++++- .../service/IProductionReportService.java | 7 ++ .../mapper/report/BasePdaRecordMapper.xml | 1 + .../report/ReportQualityInspectionMapper.xml | 85 +++++++++++-------- .../report/ReportRepairMeasuresMapper.xml | 2 +- 11 files changed, 121 insertions(+), 52 deletions(-) diff --git a/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml b/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml index 8692444..ddce671 100644 --- a/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml +++ b/aucma-base/src/main/resources/mapper/base/BaseDeviceLedgerMapper.xml @@ -67,6 +67,7 @@ and updated_by = #{updatedBy} and updated_time = #{updatedTime} + order by device_code diff --git a/aucma-base/src/main/resources/mapper/base/StationDefectRelationMapper.xml b/aucma-base/src/main/resources/mapper/base/StationDefectRelationMapper.xml index 1473779..4bac4e0 100644 --- a/aucma-base/src/main/resources/mapper/base/StationDefectRelationMapper.xml +++ b/aucma-base/src/main/resources/mapper/base/StationDefectRelationMapper.xml @@ -53,6 +53,7 @@ and sdr.updated_by = #{updatedBy} and sdr.updated_time = #{updatedTime} + order by sdr.station_code, sdr.defect_code - and bar_code = #{barCode} - and material_name like concat(concat('%', + and rqi.bar_code = #{barCode} + and rqi.material_name like concat(concat('%', #{materialName}), '%') - and process_code = #{processCode} - and test_item_code = #{testItemCode} - and quality_defect_code = + and rqi.process_code = #{processCode} + and rqi.test_item_code = #{testItemCode} + and rqi.quality_defect_code = #{qualityDefectCode} - and quality_defect_name like + and rqi.quality_defect_name like concat(concat('%', #{qualityDefectName}), '%') - and treatment_measure = + and rqi.treatment_measure = #{treatmentMeasure} - and process_result = #{processResult} - and is_lower_line = #{isLowerLine} - and group_code = #{groupCode} - and inspector_code = #{inspectorCode} - and inspector_time = #{inspectorTime} - and rework_number = #{reworkNumber} - and finish_time = #{finishTime} - and is_flag = #{isFlag} - and updated_by = #{updatedBy} - and updated_time = #{updatedTime} + and rqi.process_result = #{processResult} + and rqi.is_lower_line = #{isLowerLine} + and rqi.group_code = #{groupCode} + and rqi.inspector_code = #{inspectorCode} + and rqi.inspector_time = #{inspectorTime} + and rqi.rework_number = #{reworkNumber} + and rqi.finish_time = #{finishTime} + and rqi.is_flag = #{isFlag} + and rqi.updated_by = #{updatedBy} + and rqi.updated_time = #{updatedTime} diff --git a/aucma-report/src/main/resources/mapper/report/ReportRepairMeasuresMapper.xml b/aucma-report/src/main/resources/mapper/report/ReportRepairMeasuresMapper.xml index dbae48d..d08e692 100644 --- a/aucma-report/src/main/resources/mapper/report/ReportRepairMeasuresMapper.xml +++ b/aucma-report/src/main/resources/mapper/report/ReportRepairMeasuresMapper.xml @@ -45,7 +45,7 @@ and created_time = #{createdTime} and updated_by = #{updatedBy} and updated_time = #{updatedTime} - and user_permission = #{userPermission} + and #{userPermission} >= user_permission order by repair_code