feat(库存查询报表):

1.如果 作业规则IS_SECRCY为Y代表保密查询仓库在5001和5001;否则查询仓库不在5001和5001
This commit is contained in:
leiqiaozhen 2025-03-17 16:11:14 +08:00
parent 4f5b9cd043
commit 473a2e0490

View File

@ -80,15 +80,19 @@
<where>
WI.SITE = #{site}
<if test="erpStorageLocationList != null and erpStorageLocationList.size > 0">
AND WI.ERP_STORAGE_LOCATION
<choose>
<when test="isSecrecy != null"> IN </when>
<otherwise> NOT IN </otherwise>
</choose>
AND WI.ERP_STORAGE_LOCATION IN
<foreach collection="erpStorageLocationList" item="erpStorageLocation" open="(" separator="," close=")">
#{erpStorageLocation}
</foreach>
</if>
<choose>
<when test="isSecrecy != null">
AND WI.ERP_STORAGE_LOCATION IN ('5001', '5002')
</when>
<otherwise>
AND WI.ERP_STORAGE_LOCATION NOT IN ('5001', '5002')
</otherwise>
</choose>
<if test="inventoryIdList != null and inventoryIdList.size > 0">
AND WI.INVENTORY_ID IN
<foreach collection="inventoryIdList" item="inventoryId" open="(" separator="," close=")">
@ -193,15 +197,19 @@
<where>
WI.SITE = #{site}
<if test="erpStorageLocationList != null and erpStorageLocationList.size > 0">
AND WI.ERP_STORAGE_LOCATION
<choose>
<when test="isSecrecy != null"> IN </when>
<otherwise> NOT IN </otherwise>
</choose>
AND WI.ERP_STORAGE_LOCATION IN
<foreach collection="erpStorageLocationList" item="erpStorageLocation" open="(" separator="," close=")">
#{erpStorageLocation}
</foreach>
</if>
<choose>
<when test="isSecrecy != null">
AND WI.ERP_STORAGE_LOCATION IN ('5001', '5002')
</when>
<otherwise>
AND WI.ERP_STORAGE_LOCATION NOT IN ('5001', '5002')
</otherwise>
</choose>
<if test="inventoryIdList != null and inventoryIdList.size > 0">
AND WI.INVENTORY_ID IN
<foreach collection="inventoryIdList" item="inventoryId" open="(" separator="," close=")">