| | |
| | | <result column="modi_time" property="modiTime" /> |
| | | <result column="appe_user" property="appeUser" /> |
| | | <result column="appe_time" property="appeTime" /> |
| | | <result column="mat_status" property="matStatus" /> |
| | | </resultMap> |
| | | |
| | | <sql id="stockOutCondition"> |
| | |
| | | and b.loc_sts = 'F' |
| | | <include refid="stockOutCondition"></include> |
| | | </select> |
| | | |
| | | <select id="getAllLocDetlData" resultMap="BaseResultMap"> |
| | | select loc_no,matnr,maktx,lgnum,type,mnemonic,supplier,warehouse, |
| | | brand,anfme,altme,zpallet,bname,memo,modi_user, modi_time,appe_user, |
| | | appe_time,mat_status from asr_loc_detl where 1 = 1 |
| | | <if test="loc_no!=null and loc_no!='' "> |
| | | and loc_no = #{loc_no,jdbcType=VARCHAR} |
| | | </if> |
| | | <if test="matnr!=null and matnr!='' "> |
| | | and matnr = #{matnr,jdbcType=VARCHAR} |
| | | </if> |
| | | </select> |
| | | |
| | | <update id="updateMatStatus"> |
| | | BEGIN |
| | | <foreach collection="list" item="item" index="index"> |
| | | update dbo.asr_loc_detl |
| | | set mat_status = #{item.matStatusFlag,jdbcType=VARCHAR} |
| | | where 1 = 1 |
| | | <if test="item.locNo!=null and item.locNo!='' "> |
| | | and loc_no = #{item.locNo,jdbcType=VARCHAR} |
| | | </if> |
| | | <if test="item.matnr!=null and item.matnr!='' "> |
| | | and matnr = #{item.matnr,jdbcType=VARCHAR} |
| | | </if> |
| | | </foreach> |
| | | END; |
| | | </update> |
| | | </mapper> |