From 7c972e558c36e11ff6c80eb68e5273dffb68d0ff Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期四, 04 三月 2021 17:09:01 +0800
Subject: [PATCH] 1.0.1 1.新增库存物料状态维护页面

---
 src/main/resources/mapper/LocDetlMapper.xml |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 7f473cb..9548d3b 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -22,6 +22,7 @@
         <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">
@@ -77,4 +78,32 @@
         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>

--
Gitblit v1.9.1