| | |
| | | (select `name` from t_company where 1 = 1 and if(a.companyId is null or a.companyId = 0, id = 1, if(a.franchiseeId is null or a.franchiseeId = 0, id = a.companyId, id = a.franchiseeId))) as company, |
| | | b.carLicensePlate as licensePlate, |
| | | b.carColor as carColor, |
| | | b.vehicleId, |
| | | CONCAT(d.`name`, c.`name`) as brand, |
| | | ( |
| | | (select count(id) from t_order_private_car where driverId = a.id and state in (7, 8, 9)) + |
| | |
| | | phone as phone, |
| | | CONCAT(firstName, " ", lastName) as name, |
| | | headImgUrl as avatar, |
| | | DATE_FORMAT(insertTime,'%Y/%m/%d %H:%i') as insertTime |
| | | DATE_FORMAT(insertTime,'%Y-%m-%d %H:%i') as insertTime |
| | | from |
| | | t_driver |
| | | where uid=#{uid} |