From e03adc9fa7d0bc2fbb9c78b67de3c734e5d9a643 Mon Sep 17 00:00:00 2001 From: zhangnaisong <2434969829@qq.com> Date: 星期六, 22 七月 2023 15:35:03 +0800 Subject: [PATCH] 三一车辆实时位置添加判断null提交 --- ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml index f958e1d..04da96d 100644 --- a/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml +++ b/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml @@ -101,4 +101,16 @@ #{id} </foreach> </select> + + <select id="carListById" parameterType="String" resultMap="ArdSyCarResult"> + select * from ard_sy_car where id = #{id} + </select> + <select id="getArdSyCarAndDeptByCarId" parameterType="String" resultType="java.util.Map"> + select asc0.id,asc0.car_id as "carId",coalesce(asc0.car_model,'') as "carModel", + coalesce(asc0.car_type,'') as "carType",coalesce(asc0.car_brand,'') as "carBrand", + asc0.dept_id as "deptId",asc0.car_picture as "carPicture",sd.ancestors, + sd.dept_name as "deptName" from ard_sy_car asc0 + inner join sys_dept sd on asc0.dept_id = sd.dept_id + where asc0.car_id = #{carId} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3