diff --git a/op-modules/op-quality/src/main/resources/mapper/quality/QcStaticTableMapper.xml b/op-modules/op-quality/src/main/resources/mapper/quality/QcStaticTableMapper.xml index 019c7f337..32ed4fff6 100644 --- a/op-modules/op-quality/src/main/resources/mapper/quality/QcStaticTableMapper.xml +++ b/op-modules/op-quality/src/main/resources/mapper/quality/QcStaticTableMapper.xml @@ -20,7 +20,7 @@ #{supplierCode} --> - select DISTINCT qct.supplier_code supplierCode, + select DISTINCT qct.supplier_code supplierCode,qct.unit, qct.supplier_name supplierName from qc_check_task qct LEFT JOIN base_supplier bs ON bs.supplier_code = qct.supplier_code @@ -56,11 +56,14 @@ @@ -1372,7 +1375,7 @@ from qc_check_task qct left join qc_check_task_defect qctd on qct.record_id = qctd.belong_to left join qc_defect_type_class qdtc on qdtc.id = qctd.class_id - where qct.del_flag = '0' and qdtc.class_name is not null --and qct.check_type ='checkTypeSC' + where qct.del_flag = '0' and qdtc.class_name is not null and qct.check_type ='checkTypeCPPC' and CONVERT(varchar(7),qct.create_time, 120) = #{yearMonth} ) t group by t.ymdms @@ -1385,7 +1388,7 @@ CONVERT(varchar(10),qct.create_time, 120) ymdms, check_result from qc_check_task qct - where qct.del_flag = '0' --and qct.check_type ='checkTypeSC' + where qct.del_flag = '0' and qct.check_type ='checkTypeCPPC' and CONVERT(varchar(7),qct.create_time, 120) = #{yearMonth} ) t group by t.ymdms @@ -1397,7 +1400,7 @@ CONVERT(varchar(10),qct.create_time, 120) ymdms, sample_quality from qc_check_task qct - where qct.del_flag = '0' --and qct.check_type ='checkTypeSC' + where qct.del_flag = '0' and qct.check_type ='checkTypeCPPC' and CONVERT(varchar(7),qct.create_time, 120) = #{yearMonth} ) t group by t.ymdms