| | |
| | | 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_order_cancel as oc on (ot.id = oc.orderId and oc.orderType = 4 and oc.state = 2) |
| | | left join t_order_cancel as oc on (ot.id = oc.orderId and oc.orderType = 4) |
| | | ) as o |
| | | <where> |
| | | o.isDelete = 1 |
| | |
| | | oc.money as cancelMoney, |
| | | case when oc.payType = 1 then '手机支付' |
| | | when oc.payType = 2 then '银行卡支付' |
| | | when oc.payType = 3 then '余额支付' else '现金支付' end as cancelPayTypeStr |
| | | when oc.payType = 3 then '余额支付' |
| | | when oc.payType = 4 then '现金支付'else '' end as cancelPayTypeStr |
| | | 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 |