| | |
| | | |
| | | <update id="increase"> |
| | | update man_order_detl |
| | | set qty = qty + #{qty} |
| | | set work_qty = work_qty + #{qty} |
| | | where 1=1 |
| | | and order_id = #{orderId} |
| | | and matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | <when test="batch != null and batch!='' "> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | |
| | | |
| | | <update id="decrease"> |
| | | update man_order_detl |
| | | set qty = qty - #{qty} |
| | | set work_qty = work_qty - #{qty} |
| | | where 1=1 |
| | | and order_no = #{orderNo} |
| | | and matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null"> |
| | | <when test="batch != null "> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |