|
|
@ -465,8 +465,7 @@
|
|
|
|
left join auth_warehouse on auth_warehouse.code = ip.invCode
|
|
|
|
left join auth_warehouse on auth_warehouse.code = ip.invCode
|
|
|
|
left join basic_product_category_rel on basic_product_category_rel.relId = basic_udirel.id
|
|
|
|
left join basic_product_category_rel on basic_product_category_rel.relId = basic_udirel.id
|
|
|
|
left join basic_product_category on basic_product_category_rel.code = basic_product_category.code
|
|
|
|
left join basic_product_category on basic_product_category_rel.code = basic_product_category.code
|
|
|
|
left join inv_product_detail ipd on ip.invCode = ipd.invCode and ip.relIdFk = ipd.relId and
|
|
|
|
|
|
|
|
ifnull(ip.batchNo, 'empty') = ifnull(ipd.batchNo, 'empty')
|
|
|
|
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
bp.diType = 1
|
|
|
|
bp.diType = 1
|
|
|
|
<if test="cpmctymc != null and cpmctymc != ''">
|
|
|
|
<if test="cpmctymc != null and cpmctymc != ''">
|
|
|
|