From be7f25d191ba337a7685a21c08fbfe7cf3114674 Mon Sep 17 00:00:00 2001 From: GUO <1923636941@qq.com> Date: Mon, 27 May 2024 22:06:03 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zhgd/xmgl/modules/car/mapper/xml/CarInfoMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/zhgd/xmgl/modules/car/mapper/xml/CarInfoMapper.xml b/src/main/java/com/zhgd/xmgl/modules/car/mapper/xml/CarInfoMapper.xml index b7bb8bb79..14534e954 100644 --- a/src/main/java/com/zhgd/xmgl/modules/car/mapper/xml/CarInfoMapper.xml +++ b/src/main/java/com/zhgd/xmgl/modules/car/mapper/xml/CarInfoMapper.xml @@ -11,7 +11,7 @@ FROM car_info t LEFT JOIN car_type b ON (t.car_type=b.id and t.project_sn=b.project_sn) left join enterprise_info ei on ei.id=t.enterprise_id left join worker_info wi on t.driver_worker_id = wi.id and (t.car_module_type=1 or t.car_module_type=2) - left join worker_info wi1 on wi1.id_card=t.outside_driver_id_card and t.car_module_type=3 + left join (SELECT * FROM worker_info GROUP BY id_card) wi1 on wi1.id_card=t.outside_driver_id_card and t.car_module_type=3 WHERE t.project_sn=#{param.projectSn} and t.car_number like CONCAT(CONCAT('%',#{param.carNumber}),'%')