bug修改

This commit is contained in:
GUO 2024-05-27 22:06:03 +08:00
parent e9f4c16a6a
commit be7f25d191

View File

@ -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}
<if test="param.carNumber != null and param.carNumber != ''">
and t.car_number like CONCAT(CONCAT('%',#{param.carNumber}),'%')