| | |
| | | <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> |
| | | |
| | |
| | | where 1=1 |
| | | and order_no = #{orderNo} |
| | | and matnr = #{matnr} |
| | | <if test="batch!=null and batch!='' "> |
| | | <if test="batch!=null"> |
| | | and batch = #{batch} |
| | | </if> |
| | | </select> |
| | |
| | | and mdt.pakout = 1 |
| | | <include refid="pakOutPageCondition"></include> |
| | | </select> |
| | | <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 |
| | |
| | | and order_no = #{orderNo} |
| | | and matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | <when test="batch != null"> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | and (batch IS NULL ) |
| | | </otherwise> |
| | | </choose> |
| | | </update> |
| | |
| | | INSERT INTO man_order_detl_log SELECT * FROM man_order_detl WHERE id = #{id} |
| | | </insert> |
| | | |
| | | <update id="increaseQtyByOrderNo"> |
| | | update man_order_detl |
| | | set qty = qty + #{qty} |
| | | where 1=1 |
| | | and order_no = #{orderNo} |
| | | and matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | </update> |
| | | |
| | | <update id="increaseWorkQty"> |
| | | update man_order_detl |
| | | set work_qty = work_qty + #{workQty} |