Browse Source

修改备品备件安全库存查询方式,将库存<=最低库存改为库存<最低库存

java8
赵宏斌 7 months ago
parent
commit
cb7350b992
  1. 4
      src/main/resources/mapper/pms/InventoryStockMapper.xml

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

@ -205,10 +205,10 @@
A.site, A.part_no, B.part_description, b.min_stock, b.max_stock, B.average_price, B.umid,a.citem_code
</if>
<if test="query.safetyStock == '不安全' and (query.securityMethod == '库存' or query.securityMethod == '' or query.securityMethod == null )">
having sum(A.qty_on_hand) <![CDATA[<=]]> B.min_stock
having sum(A.qty_on_hand) <![CDATA[<]]> B.min_stock
</if>
<if test="query.safetyStock == '不安全' and query.securityMethod == '库存和在途'">
having sum(A.qty_on_hand) + sum(isnull(A.qty_of_po,0.0)) <![CDATA[<=]]> B.min_stock
having sum(A.qty_on_hand) + sum(isnull(A.qty_of_po,0.0)) <![CDATA[<]]> B.min_stock
</if>
</select>
</mapper>
Loading…
Cancel
Save