修改报表管理-》院内库房情况查询报表-》库存商品明细查询报表,选择库存范围条件检索报错补充

This commit is contained in:
2025-11-11 11:51:52 +08:00
parent 6762341fbd
commit c086dc8c77
3 changed files with 23 additions and 29 deletions

View File

@@ -139,5 +139,21 @@
WHERE T1.delete_flag = '0') AS T10
) AS T
${ew.customSqlSegment}
<if test="inventoryScope != null">
<choose>
<when test="inventoryScope == 2">
AND item_quantity = 0
</when>
<when test="inventoryScope == 3">
AND item_quantity > 0
</when>
<when test="inventoryScope == 4">
AND item_quantity <![CDATA[ <= ]]> 20
</when>
<when test="inventoryScope == 5">
AND item_quantity <![CDATA[ <= ]]> 50
</when>
</choose>
</if>
</select>
</mapper>