| | |
| | | when ot.payType = 3 then '余额' else '' end as payTypeStr, |
| | | ui.nickName as userName,ui.phone as userPhone, |
| | | CONCAT(di.`name`,'-',di.phone) as driver,CONCAT(cb.`name`,'-',ci.carLicensePlate) as car, |
| | | '市内小件物流' as typeStr, |
| | | dd.name as companyName, |
| | | ot.* FROM t_order_logistics as ot |
| | | LEFT JOIN t_user as ui on ui.id = ot.userId |
| | | LEFT JOIN t_driver as di on di.id = ot.driverId |
| | | LEFT JOIN t_car as ci on ci.id= ot.carId |
| | | LEFT JOIN t_car_brand as cb on cb.id = ci.carBrandId |
| | | LEFT JOIN t_company as cc on cc.id = ot.companyId |
| | | LEFT JOIN t_company as dd on dd.id = ci.companyId |
| | | where ot.id = #{orderId} |
| | | </select> |
| | | |