sql修改;

This commit is contained in:
王奎兴
2026-02-03 10:33:29 +08:00
parent 2ee208c50e
commit 2c27ce7031
@@ -703,19 +703,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND a.storage_location_id = #{storageLocationId}
</if>
<if test="extAttr4 != null">
AND TRUNC(a.EXT_ATTR_4) = TRUNC(#{inventoryDate})
AND TRUNC(a.EXT_ATTR_4) = TRUNC(#{extAttr4})
</if>
<if test="extAttr3 != null">
AND TRUNC(a.EXT_ATTR_3) = TRUNC(#{inventoryDate})
AND TRUNC(a.EXT_ATTR_3) = TRUNC(#{extAttr3})
</if>
<if test="inventoryDate != null">
AND TRUNC(a.inventory_date) = TRUNC(#{inventoryDate})
</if>
<if test="expiryDate != null">
AND TRUNC(a.EXPIRY_DATE) = TRUNC(#{inventoryDate})
AND TRUNC(a.EXPIRY_DATE) = TRUNC(#{expiryDate})
</if>
<if test="productionDate != null">
AND TRUNC(a.PRODUCTION_DATE) = TRUNC(#{inventoryDate})
AND TRUNC(a.PRODUCTION_DATE) = TRUNC(#{productionDate})
</if>
<if test="extAttr2 != null and extAttr2 != ''">
AND a.EXT_ATTR_2 = #{extAttr2}