| | |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="owner" property="owner" /> |
| | | <result column="payment" property="payment" /> |
| | | <result column="uuid" property="uuid" /> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | <select id="checkAllDetlFinish" resultType="java.lang.Integer"> |
| | | SELECT count(*) From man_order_detl WHERE qty < anfme and order_no = #{orderNo} |
| | | </select> |
| | | <select id="sameOrderComb" resultType="java.lang.Integer"> |
| | | SELECT SUM(anfme) FROM cust_wait_pakin WHERE 1=1 |
| | | <if test="orderNo!=null and orderNo!='' "> |
| | | and order_no like '%' + #{orderNo} + '%' |
| | | </if> |
| | | and matnr = #{matnr} |
| | | and batch = #{batch} |
| | | </select> |
| | | |
| | | <update id="increase"> |
| | | update man_order_detl |
| | |
| | | |
| | | <update id="decrease"> |
| | | update man_order_detl |
| | | set work_qty = work_qty - #{qty} |
| | | set qty = qty - #{qty} |
| | | where 1=1 |
| | | and order_no = #{orderNo} |
| | | and matnr = #{matnr} |