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