修改报表管理-》院内库房情况查询报表-》库存商品明细查询报表,选择库存范围条件检索报错补充
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user