From b342dee27e2b0384616539118346fc2a2af1de7e Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期三, 24 七月 2024 14:12:52 +0800
Subject: [PATCH] 三一车辆查询bug修改提交
---
ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml
index 315401f..277904e 100644
--- a/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml
+++ b/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml
@@ -17,7 +17,7 @@
<result property="reserved3" column="reserved_3" />
</resultMap>
- <!--<resultMap type="ArdSyCar" id="ArdSyCarLockResult">
+ <resultMap type="ArdSyCar" id="ArdSyCarLockResult">
<result property="id" column="id" />
<result property="carId" column="car_id" />
<result property="carModel" column="car_model" />
@@ -39,7 +39,7 @@
<result property="restartState" column="restart_state" />
<result property="onlineTime" column="online_time" />
</collection>
- </resultMap>-->
+ </resultMap>
<sql id="selectArdSyCarVo">
select id, car_id, car_model, car_type, car_brand, dept_id, car_picture, reserved_1, reserved_2, reserved_3 from ard_sy_car
@@ -157,4 +157,10 @@
#{carId}
</foreach>
</select>
+ <select id="getCarListByDeptIdList" resultMap="ArdSyCarResult">
+ select * from ard_sy_car where dept_id in
+ <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
+ #{deptId}
+ </foreach>
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3