|
|
|
@ -286,9 +286,6 @@
|
|
|
|
|
<if test="invSpaceCode != null and invSpaceCode != ''">
|
|
|
|
|
AND ipd.invSpaceCode = #{invSpaceCode}
|
|
|
|
|
</if>
|
|
|
|
|
<!-- <if test="supId != null and supId != ''">-->
|
|
|
|
|
<!-- AND ipd.supId = #{supId}-->
|
|
|
|
|
<!-- </if>-->
|
|
|
|
|
</where>
|
|
|
|
|
group by ip.id
|
|
|
|
|
</select>
|
|
|
|
@ -304,12 +301,11 @@
|
|
|
|
|
inv_product.inCount,
|
|
|
|
|
inv_product.outCount,
|
|
|
|
|
inv_product.reCount,
|
|
|
|
|
-- sum(inv_product.inCount - inv_product.outCount) reCount,
|
|
|
|
|
basic_products.cpmctymc
|
|
|
|
|
from inv_product_detail
|
|
|
|
|
left join inv_product on inv_product_detail.relId = inv_product.relIdFk
|
|
|
|
|
and inv_product.invCode = inv_product_detail.invCode
|
|
|
|
|
AND IFNULL(inv_product.batchNo, 'empty') = IFNULL(inv_product_detail.batchNo, 'empty')
|
|
|
|
|
AND COALESCE(inv_product.batchNo, 'empty') = COALESCE(inv_product_detail.batchNo, 'empty')
|
|
|
|
|
left join basic_udirel on inv_product_detail.relId = basic_udirel.id
|
|
|
|
|
left join basic_products on basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
<where>
|
|
|
|
|