From eb5eb35a7ef56a01a4c788a8c2efef9fc7b823e7 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期一, 27 三月 2023 14:04:54 +0800
Subject: [PATCH] 四向穿梭车线程完善
---
src/main/resources/mapper/WrkChargeMapper.xml | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/WrkChargeMapper.xml b/src/main/resources/mapper/WrkChargeMapper.xml
index 5499e2a..5ce83e6 100644
--- a/src/main/resources/mapper/WrkChargeMapper.xml
+++ b/src/main/resources/mapper/WrkChargeMapper.xml
@@ -10,6 +10,7 @@
<result column="io_type" property="ioType" />
<result column="crn_no" property="crnNo" />
<result column="ste_no" property="steNo" />
+ <result column="charge" property="charge" />
<result column="out_most" property="outMost" />
<result column="io_pri" property="ioPri" />
<result column="loc_no" property="locNo" />
@@ -29,4 +30,31 @@
</resultMap>
+ <select id="selectWorkingOfCharge" resultMap="BaseResultMap">
+ select top 1 *
+ from asr_wrk_charge
+ where 1=1
+ <if test="steNo != null">
+ and ste_no = #{steNo}
+ </if>
+ <if test="charge != null">
+ and charge = #{charge}
+ </if>
+ and wrk_sts < 30
+ and memo = 'charge'
+ order by appe_time, io_pri desc
+ </select>
+
+ <select id="selectWorkingOfReset" resultMap="BaseResultMap">
+ select top 1 *
+ from asr_wrk_charge
+ where 1=1
+ <if test="steNo != null">
+ and ste_no = #{steNo}
+ </if>
+ and wrk_sts < 47
+ and memo = 'reset'
+ order by appe_time, io_pri desc
+ </select>
+
</mapper>
--
Gitblit v1.9.1