| | |
| | | select |
| | | a.id as id, |
| | | CONCAT(a.carLicensePlate, '-',c.`name`, b.`name`, ' ', a.carColor) as name, |
| | | a.useDriverId as useDriverId |
| | | d.id as useDriverId |
| | | from t_car a |
| | | left join t_car_model b on (a.carModelId = b.id) |
| | | left join t_car_brand c on (b.brandId = c.id) |
| | | where a.state = 1 and find_in_set(a.bindDriverId,#{id}) |
| | | left join t_car_model b on (a.carModelId = b.id) |
| | | left join t_car_brand c on (b.brandId = c.id) |
| | | left join t_driver d on (a.id = d.carId) |
| | | where a.state = 1 and find_in_set(#{id},a.bindDriverId) |
| | | </select> |
| | | </mapper> |