From 2799314298467be9ed68d9e19891e35cb3c3edad Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期四, 01 八月 2024 08:14:18 +0800
Subject: [PATCH] 电磁锁动作状态改为操控中...提交
---
ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml
index 180db6b..19d3030 100644
--- a/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml
+++ b/ard-work/src/main/resources/mapper/sy/ArdTankLockStateMapper.xml
@@ -110,4 +110,25 @@
#{uniqueMark,jdbcType=VARCHAR})
on conflict(unique_mark) do update set upload_time=#{uploadTime,jdbcType=VARCHAR}
</insert>
+
+ <select id="selectArdTankLockStateByLockIdLimitOne" parameterType="java.lang.String" resultMap="ArdTankLockStateResult">
+ select atls.id,atls.lock_id,atls.lock_num,atls.lock_state,
+ atls.lock_position_state,atls.lock_shell_state,atls.restart_state,
+ atls.batter_voltage,atls.power_voltage,atls.upload_time,atls.unique_mark,
+ case atls.lock_state
+ when '鍏抽攣鐘舵��' then false
+ when '寮傚父鐘舵��' then false
+ /*when '鍔ㄤ綔鐘舵��' then false*/
+ when '鎿嶆帶涓�...' then false
+ when '寮�閿佺姸鎬�' then true
+ end as lock_state_mark
+ from ard_tank_lock_state atls
+ where atls.lock_id = #{lockId} order by atls.upload_time desc
+ limit 1
+ </select>
+
+ <update id="updateArdTankLockStateByUniqueMark" parameterType="java.lang.String">
+ update ard_tank_lock_state set upload_time = #{uploadTime}
+ where unique_mark = #{uniqueMark}
+ </update>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3