| | |
| | | where node_id = #{nodeId} ; |
| | | </update> |
| | | |
| | | <select id="selectInventory" resultMap="BaseResultMap"> |
| | | select top 1 * from man_loc_detl |
| | | where loc_no=#{LocNo} |
| | | and 1=1 |
| | | and matnr=#{Matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | </select> |
| | | <delete id="deleteDatailed"> |
| | | delete from man_loc_detl |
| | | where loc_no = #{locNo} |
| | | and matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | </delete> |
| | | |
| | | <update id="increase"> |
| | | update man_loc_detl |
| | | set anfme= #{anfme} |
| | | , modi_time = getdate() |
| | | where 1=1 |
| | | and loc_no = #{locNo} |
| | | and matnr = #{matnr} |
| | | <choose> |
| | | <when test="batch != null and batch!='' "> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | </update> |
| | | </mapper> |