| | |
| | | and loc_no = #{locNo} |
| | | and matnr = #{matnr} |
| | | <include refid="batchSeq"></include> |
| | | <include refid="locdetlCondition"></include> |
| | | </delete> |
| | | |
| | | <update id="updateAnfme"> |
| | |
| | | where 1=1 |
| | | and loc_no = #{locNo} |
| | | and matnr = #{matnr} |
| | | <include refid="locdetlCondition"></include> |
| | | <include refid="batchSeq"></include> |
| | | </update> |
| | | |
| | | <sql id="locdetlCondition"> |
| | | <if test="threeCode!=null and threeCode!='' "> |
| | | and three_code = #{threeCode} |
| | | </if> |
| | | <if test="suppCode!=null and suppCode!='' "> |
| | | and supp_code = #{suppCode} |
| | | </if> |
| | | <if test="deadTime!=null and deadTime!='' "> |
| | | and dead_time = #{deadTime} |
| | | </if> |
| | | </sql> |
| | | |
| | | <sql id="stockOutCondition"> |
| | | <if test="loc_no!=null and loc_no!='' "> |
| | | and a.loc_no like '%' + #{loc_no} + '%' |