Browse Source

增加筛选条件 在库数量是否为0

master
赵宏斌 4 days ago
parent
commit
170afa948f
  1. 2
      src/main/java/com/xujie/sys/modules/pms/entity/InventoryStockVoData.java
  2. 12
      src/main/resources/mapper/pms/InventoryStockMapper.xml

2
src/main/java/com/xujie/sys/modules/pms/entity/InventoryStockVoData.java

@ -20,4 +20,6 @@ public class InventoryStockVoData extends InventoryStockVo {
private String searchType; private String searchType;
private BigDecimal estUseQty; private BigDecimal estUseQty;
private String isZeroFlag;
} }

12
src/main/resources/mapper/pms/InventoryStockMapper.xml

@ -113,6 +113,12 @@
<if test="query.safetyStock == '不安全'"> <if test="query.safetyStock == '不安全'">
and A.qty_on_hand <![CDATA[<=]]> B.min_stock and A.qty_on_hand <![CDATA[<=]]> B.min_stock
</if> </if>
<if test="query.isZeroFlag == 1">
and A.qty_on_hand = 0
</if>
<if test="query.isZeroFlag == 2">
and A.qty_on_hand != 0
</if>
</where> </where>
GROUP BY GROUP BY
<if test="query.groupType == 0"> <if test="query.groupType == 0">
@ -215,6 +221,12 @@
<if test="query.safetyStock == '安全'"> <if test="query.safetyStock == '安全'">
and A.qty_on_hand <![CDATA[>]]> B.min_stock and A.qty_on_hand <![CDATA[>]]> B.min_stock
</if> </if>
<if test="query.isZeroFlag == 1">
and A.qty_on_hand = 0
</if>
<if test="query.isZeroFlag == 2">
and A.qty_on_hand != 0
</if>
</where> </where>
GROUP BY GROUP BY
<if test="query.groupType == 0"> <if test="query.groupType == 0">

Loading…
Cancel
Save