|
|
@@ -1047,7 +1047,16 @@
|
|
|
</if>
|
|
|
</set>
|
|
|
where order_id =#{et.orderId,typeHandler=UuidTypeHandler}
|
|
|
- and sum_quantity >= (out_qty + outing_qty)
|
|
|
+ and sum_quantity >= (
|
|
|
+ out_qty
|
|
|
+ <if test=" et!=null and et.updateOutMessageFlag != null and et.updateOutMessageFlag ">
|
|
|
+ + #{et.outQty,jdbcType=NUMERIC}
|
|
|
+ </if>
|
|
|
+ + outing_qty
|
|
|
+ <if test=" et!=null and et.updateOutingMessageFlag != null and et.updateOutingMessageFlag ">
|
|
|
+ + #{et.outingQty,jdbcType=NUMERIC}
|
|
|
+ </if>
|
|
|
+ )
|
|
|
</update>
|
|
|
|
|
|
|