From 775524110885e27fe860be1feb156ca78b5040b2 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期六, 06 七月 2024 14:10:57 +0800
Subject: [PATCH] 电子围栏分页查询修改提交
---
ard-work/src/main/resources/mapper/sy/ArdTankLockMapper.xml | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/sy/ArdTankLockMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdTankLockMapper.xml
index e7231e9..c8e672e 100644
--- a/ard-work/src/main/resources/mapper/sy/ArdTankLockMapper.xml
+++ b/ard-work/src/main/resources/mapper/sy/ArdTankLockMapper.xml
@@ -92,7 +92,7 @@
</delete>
<select id="getAll" resultMap="ArdTankLockResult">
- select * from ard_tank_lock atl order by atl.car_id
+ select * from ard_tank_lock atl order by atl.car_id,lock_num
</select>
<insert id="insertArdTankLocks" parameterType="com.ruoyi.sy.domain.ArdTankLock" >
@@ -107,4 +107,19 @@
#{ardTankLock.onlineTime})
</foreach >
</insert>
+
+ <select id="getLockByCarId" resultMap="ArdTankLockResult" parameterType="java.lang.String">
+ select * from ard_tank_lock atl where car_id = #{carId} order by atl.lock_num
+ </select>
+
+ <delete id="deleteLockByCarId" parameterType="java.lang.String">
+ delete from ard_tank_lock where car_id = #{carId}
+ </delete>
+
+ <delete id="deleteArdTankLockByIdSet" >
+ delete from ard_tank_lock where id in
+ <foreach item="id" collection="idSet" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </delete>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3