|
|
|
|
@ -23,8 +23,10 @@
|
|
|
|
|
select DISTINCT qct.supplier_code supplierCode,
|
|
|
|
|
qct.supplier_name supplierName
|
|
|
|
|
from qc_check_task qct
|
|
|
|
|
LEFT JOIN base_supplier bs ON bs.supplier_code = qct.supplier_code
|
|
|
|
|
where qct.type_code = 'material' and qct.del_flag = '0'
|
|
|
|
|
and CONVERT(varchar(7),qct.income_time, 120) = #{yearMonth}
|
|
|
|
|
<if test="userDefined3 != null ">and bs.supplier_code = #{userDefined3}</if>
|
|
|
|
|
<if test="supplierCodes != null and supplierCodes.size()>0">
|
|
|
|
|
and qct.supplier_code in
|
|
|
|
|
<foreach collection="supplierCodes" item="supplierCode" index="index" separator="," open="(" close=")">
|
|
|
|
|
@ -95,7 +97,7 @@
|
|
|
|
|
left join qc_defect_type type2 on qctd2.defect_code = type2.defect_code
|
|
|
|
|
left join qc_check_task_defect qctd3 on qct.record_id = qctd3.belong_to and qctd3.defect_code = '20231212003'
|
|
|
|
|
left join qc_defect_type type3 on qctd3.defect_code = type3.defect_code
|
|
|
|
|
where qct.del_flag = '0' and qct.type_code = 'produce'
|
|
|
|
|
where qct.del_flag = '0' and qct.type_code = 'produce' and qct.check_type = 'checkTypeCPPC'
|
|
|
|
|
<if test="materialCode != null ">and qct.material_code in (${materialCode})</if>
|
|
|
|
|
<if test="workCenter != null ">and qct.supplier_code = #{workCenter}</if>
|
|
|
|
|
<if test="ymArrayStart != null ">and CONVERT(varchar(10),qct.create_time, 120) >= #{ymArrayStart}</if>
|
|
|
|
|
|