|
|
@ -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"> |
|
|
|