From 897bf0f381e16c51cea0581e8bd8913d8bb9d047 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期六, 06 十二月 2025 15:46:13 +0800
Subject: [PATCH] 1. 添加AGV站点与堆垛机站点绑定关系 2. 获取并板入库托盘 3. 生成AGV任务 4. 生成堆垛机任务

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

diff --git a/src/main/resources/mapper/StaDescMapper.xml b/src/main/resources/mapper/StaDescMapper.xml
index b3bde73..6bbea2d 100644
--- a/src/main/resources/mapper/StaDescMapper.xml
+++ b/src/main/resources/mapper/StaDescMapper.xml
@@ -19,4 +19,23 @@
 
     </resultMap>
 
+    <select id="queryOutStaNosByLocNo" resultType="java.lang.Integer">
+        select
+        distinct asd.stn_no
+        from asr_sta_desc asd
+        left join asr_loc_mast alm on asd.crn_no = alm.crn_no
+        where 1=1
+        and alm.loc_no = #{locNo}
+        <if test="typeNo != null and typeNo !=''">
+            and asd.type_no = #{typeNo}
+        </if>
+    </select>
+
+    <select id="queryCrnStn" resultMap="BaseResultMap">
+        select top 1 * from asr_sta_desc
+        where 1=1
+        and crn_no = #{crnNo}
+        and type_no = 1
+    </select>
+
 </mapper>

--
Gitblit v1.9.1