From 191f08b7a74c461d1914652aed737888967a69f1 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期四, 19 十月 2023 16:51:38 +0800
Subject: [PATCH] #地图增加分布式锁
---
src/main/resources/mapper/BasLiftOptMapper.xml | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/BasLiftOptMapper.xml b/src/main/resources/mapper/BasLiftOptMapper.xml
index 0d9fa3f..5436fd3 100644
--- a/src/main/resources/mapper/BasLiftOptMapper.xml
+++ b/src/main/resources/mapper/BasLiftOptMapper.xml
@@ -13,7 +13,14 @@
<result column="memo" property="memo" />
<result column="command" property="command" />
<result column="system_status" property="systemStatus" />
+ <result column="device_wrk" property="deviceWrk" />
</resultMap>
+ <select id="selectByDeviceWrk" resultMap="BaseResultMap">
+ select top 1 * from asr_bas_lift_opt
+ where device_wrk = #{deviceWrk}
+ order by send_time desc
+ </select>
+
</mapper>
--
Gitblit v1.9.1