| | |
| | | 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_server_carmodel as sc on sc.id = ot.serverCarModelId |
| | | left join t_order_cancel as oc on (ot.id = oc.orderId and oc.orderType = 1 and oc.state = 2) |
| | | left join t_order_cancel as oc on (ot.id = oc.orderId and oc.orderType = 1) |
| | | ) as o |
| | | <where> |
| | | o.isDelete = 1 and o.type = 1 |
| | |
| | | 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_server_carmodel as sc on sc.id = ot.serverCarModelId |
| | | LEFT JOIN t_order_cancel as oc on ot.id = oc.orderId and oc.orderType = 1 and oc.state = 2 |
| | | LEFT JOIN t_order_cancel as oc on ot.id = oc.orderId and oc.orderType = 1 |
| | | LEFT JOIN ( |
| | | SELECT sum(ii.money) as money,ii.incomeId,cc.type FROM t_income as ii |
| | | LEFT JOIN t_company as cc on ii.objectId = cc.id |