From 0741e01ffbfb334399da40ab8266b49ef0f9e5a0 Mon Sep 17 00:00:00 2001
From: pjb <123456>
Date: 星期四, 16 十月 2025 10:04:34 +0800
Subject: [PATCH] 新增测试数据库
---
src/main/resources/mapper/ManLocDetlMapper.xml | 45 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 44 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/ManLocDetlMapper.xml b/src/main/resources/mapper/ManLocDetlMapper.xml
index 940e46c..fa9b7c1 100644
--- a/src/main/resources/mapper/ManLocDetlMapper.xml
+++ b/src/main/resources/mapper/ManLocDetlMapper.xml
@@ -28,7 +28,7 @@
<result column="create_by" property="createBy" />
<result column="create_time" property="createTime" />
<result column="update_by" property="updateBy" />
- <result column="update_time" property="modiTime" />
+ <result column="modi_time" property="modiTime" />
<result column="memo" property="memo" />
</resultMap>
@@ -295,6 +295,37 @@
WHERE 1=1
<include refid="locDetlCondition2"></include>
</select>
+ <select id="getViewLocBays" resultType="com.zy.asrs.entity.ViewLocMapDto">
+ select
+ uuid as locNo,
+ SUBSTRING(uuid, 4, 2) as bay1,
+ CASE
+ WHEN barcode = '' THEN 'O'
+ ELSE 'F'
+ END AS locSts
+ from
+ man_node
+ where
+ level = 3
+ and parent_name = #{row} + '鎺�'
+ and SUBSTRING(uuid, 7, 1) = #{lev}
+ </select>
+ <select id="selectLocDetlByLocNo" resultType="com.zy.asrs.entity.LocDetl">
+ select
+ loc_no as locNo,
+ matnr,
+ maktx,
+ doc_num as orderNo,
+ specs,
+ zpallet,
+ batch,
+ anfme,
+ unit
+ from
+ man_loc_detl
+ where
+ loc_no = #{locNo}
+ </select>
<update id="updateLocNo0">
@@ -312,5 +343,17 @@
update man_loc_detl set anfme = #{anfme}
where node_id = #{nodeId} ;
</update>
+ <update id="updateAnfme">
+ update man_loc_detl set anfme = #{anfme}
+ 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>
+ </update>
</mapper>
--
Gitblit v1.9.1