From 7c1e2217d0e4aad7498a5c136710c33cb55d00d0 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期三, 17 七月 2024 15:11:00 +0800
Subject: [PATCH] 三一车辆模型bug修改提交

---
 ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml
index 73dbb28..d582bc2 100644
--- a/ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml
+++ b/ard-work/src/main/resources/mapper/sy/ArdTankWallMapper.xml
@@ -81,4 +81,17 @@
             <if test="wallName != null  and wallName != ''"> and wall_name like '%'||#{wallName}||'%'</if>
         </where>
     </select>
+
+    <select id="getDistinctArdTankWallByCarId" resultMap="ArdTankWallResult" parameterType="java.lang.String">
+       select distinct atw.* from ard_tank_lock atl
+       inner join ard_tank_wall_lock atwl on atl.id = atwl.lock_id
+       inner join ard_tank_wall atw on atwl.wall_id = atw.id
+       where atl.car_id = #{carId}
+    </select>
+
+    <select id="getArdTankWallProcessByLockId" resultMap="ArdTankWallResult" parameterType="java.lang.String">
+        select atw.* from ard_tank_wall_lock atwl
+        inner join ard_tank_wall atw on atwl.wall_id = atw.id
+        where atwl.lock_id = #{lockId} and atwl.process_type != '0'
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3