|
|
@ -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 |
|
|
A.site, A.part_no, B.part_description, b.min_stock, b.max_stock, B.average_price, B.umid,a.citem_code |
|
|
</if> |
|
|
</if> |
|
|
<if test="query.safetyStock == '不安全' and (query.securityMethod == '库存' or query.securityMethod == '' or query.securityMethod == null )"> |
|
|
<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> |
|
|
<if test="query.safetyStock == '不安全' and query.securityMethod == '库存和在途'"> |
|
|
<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> |
|
|
</if> |
|
|
</select> |
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |