|
@@ -260,10 +260,11 @@
|
|
|
|
|
|
<select id="selectProductInventoryByLotNumAndProductId" resultType="com.zkqy.business.domain.ProductInventory">
|
|
<select id="selectProductInventoryByLotNumAndProductId" resultType="com.zkqy.business.domain.ProductInventory">
|
|
select sum(total_box_num) as totalBoxNum,sum(total_suttle) as totalSuttle from {DBNAME}.product_inventory
|
|
select sum(total_box_num) as totalBoxNum,sum(total_suttle) as totalSuttle from {DBNAME}.product_inventory
|
|
- where del_flag = '0'
|
|
|
|
|
|
+ where del_flag = '0' and del_flag = '0'
|
|
<if test="lotNum != null and lotNum != '' ">and lot_num = #{lotNum}</if>
|
|
<if test="lotNum != null and lotNum != '' ">and lot_num = #{lotNum}</if>
|
|
<if test="productId != null">and product_id = #{productId}</if>
|
|
<if test="productId != null">and product_id = #{productId}</if>
|
|
- <if test="productColour != null and productColour != ''">and product_colour = #{productColour}</if>
|
|
|
|
|
|
+ <if test="productColour != null and productColour != ''">and product_colour LIKE concat('%', #{productColour},
|
|
|
|
+ '%')</if>
|
|
<if test="inventoryType != null and inventoryType != ''">and inventory_type = #{inventoryType}</if>
|
|
<if test="inventoryType != null and inventoryType != ''">and inventory_type = #{inventoryType}</if>
|
|
</select>
|
|
</select>
|
|
|
|
|