| | |
| | | and (batch IS NULL OR batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | <choose> |
| | | <when test="barcode != null and barcode != ''"> |
| | | and barcode = #{barcode} |
| | | </when> |
| | | <otherwise> |
| | | and (barcode IS NULL OR barcode = '') |
| | | </otherwise> |
| | | </choose> |
| | | </sql> |
| | | |
| | | |
| | |
| | | and wrk_no = #{wrkNo} |
| | | and matnr = #{matnr} |
| | | <include refid="batchSeq"></include> |
| | | </update> |
| | | <update id="updateBuyerLabel"> |
| | | update asr_wrk_detl |
| | | set memo = #{buyerLabel} |
| | | where order_no = #{orderNo} |
| | | and barcode = #{barcode} |
| | | </update> |
| | | |
| | | <select id="selectAndLogByOrderNo" resultMap="BaseResultMap"> |
| | |
| | | where 1=1 |
| | | and wrk_no = #{workNo} |
| | | </update> |
| | | <select id="findByWorkNo" resultMap="BaseResultMap"> |
| | | select wrk_no, matnr, maktx, anfme ,specs,batch from asr_wrk_detl where 1=1 and wrk_no = #{workNo} |
| | | </select> |
| | | |
| | | <select id="findByBarcode" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_detl where 1=1 and zpallet = #{barcode} |
| | | </select> |
| | | </mapper> |