上架修改库存;

This commit is contained in:
王奎兴
2026-01-30 10:49:44 +08:00
parent 32dbc85026
commit 9aa72e44d7
@@ -650,35 +650,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="storageLocationId != null and storageLocationId != ''"> <if test="storageLocationId != null and storageLocationId != ''">
AND a.storage_location_id = #{storageLocationId} AND a.storage_location_id = #{storageLocationId}
</if> </if>
<if test="extAttr4 != null and extAttr4 != ''"> <if test="extAttr4 != null">
AND a.storage_location_id = #{extAttr4} AND DATE(a.EXT_ATTR_4) = DATE(#{inventoryDate})
</if> </if>
<if test="extAttr3 != null and extAttr3 != ''"> <if test="extAttr3 != null">
AND a.storage_location_id = #{extAttr3} AND DATE(a.EXT_ATTR_3) = DATE(#{inventoryDate})
</if> </if>
<if test="inventoryDate != null and inventoryDate != ''"> <if test="inventoryDate != null">
AND a.storage_location_id = #{inventoryDate} AND DATE(a.inventory_date) = DATE(#{inventoryDate})
</if> </if>
<if test="expiryDate != null and expiryDate != ''"> <if test="expiryDate != null">
AND a.storage_location_id = #{expiryDate} AND DATE(a.EXPIRY_DATE) = DATE(#{inventoryDate})
</if> </if>
<if test="productionDate != null and productionDate != ''"> <if test="productionDate != null and productionDate != ''">
AND a.storage_location_id = #{productionDate} AND DATE(a.PRODUCTION_DATE) = DATE(#{inventoryDate})
</if> </if>
<if test="extAttr2 != null and extAttr2 != ''"> <if test="extAttr2 != null and extAttr2 != ''">
AND a.storage_location_id = #{extAttr2} AND a.EXT_ATTR_2 = #{extAttr2}
</if> </if>
<if test="extAttr1 != null and extAttr1 != ''"> <if test="extAttr1 != null and extAttr1 != ''">
AND a.storage_location_id = #{extAttr1} AND a.EXT_ATTR_1 = #{extAttr1}
</if> </if>
<if test="boxPalletNo != null and boxPalletNo != ''"> <if test="boxPalletNo != null and boxPalletNo != ''">
AND a.storage_location_id = #{boxPalletNo} AND a.BOX_PALLET_NO = #{boxPalletNo}
</if> </if>
<if test="sheetRefNo != null and sheetRefNo != ''"> <if test="sheetRefNo != null and sheetRefNo != ''">
AND a.storage_location_id = #{sheetRefNo} AND a.SHEET_REF_NO = #{sheetRefNo}
</if> </if>
<if test="batchRefNo != null and batchRefNo != ''"> <if test="batchRefNo != null and batchRefNo != ''">
AND a.storage_location_id = #{batchRefNo} AND a.BATCH_REF_NO = #{batchRefNo}
</if> </if>
</select> </select>
</mapper> </mapper>