|
|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
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="userDefined3 != null ">and bs.user_defined3 = #{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=")">
|
|
|
|
|
|