| | |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="batchSeq"> |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and batch = #{batch} |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | </otherwise> |
| | | </choose> |
| | | </sql> |
| | | |
| | | <sql id="locDetlCondition"> |
| | | <if test="host_id != null and host_id != ''"> |
| | | and mld.host_id = #{host_id} |
| | |
| | | WHERE 1=1 |
| | | <include refid="locDetlCondition2"></include> |
| | | </select> |
| | | <select id="selectItem" resultMap="BaseResultMap"> |
| | | select top 1 * |
| | | from man_loc_detl |
| | | where 1=1 |
| | | and loc_no = #{locNo} |
| | | and matnr = #{matnr} |
| | | <include refid="batchSeq"></include> |
| | | </select> |
| | | <select id="sum" resultType="java.lang.Double"> |
| | | SELECT SUM(anfme) FROM man_loc_detl |
| | | </select> |
| | | |
| | | |
| | | <update id="updateLocNo0"> |