| | |
| | | |
| | | <!--根据条件查询车辆列表--> |
| | | <select id="getCarList" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page"> |
| | | SELECT * FROM (SELECT ds.serverStr,cb.`name` as brandName,cm.`name` as modelName,c1.`name` as companyName,c2.`name` as franchiseeName,cm.seat,dd.`name` as driverName,cc.* from t_car as cc |
| | | SELECT * FROM (SELECT ds.serverStr,cb.`name` as brandName,cm.`name` as modelName,c1.`name` as companyName,c2.`name` as franchiseeName,cm.seat,CONCAT(dd.firstName, ' ', dd.lastName) as driverName,cc.* from t_car as cc |
| | | LEFT JOIN (select * from t_car_brand where state = 1) as cb on cb.id = cc.carBrandId |
| | | LEFT JOIN (select * from t_car_model where state = 1) as cm on cm.id = cc.carModelId |
| | | LEFT JOIN (select * from t_company where type = 2 and flag != 3) as c1 on c1.id = cc.companyId |
| | |
| | | order by o.id desc |
| | | </select> |
| | | <select id="getCarListAuth" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page"> |
| | | SELECT * FROM (SELECT ds.serverStr,cb.`name` as brandName,cm.`name` as modelName,c1.`name` as companyName,c2.`name` as franchiseeName,cm.seat,dd.`name` as driverName,cc.* from t_car as cc |
| | | SELECT * FROM (SELECT ds.serverStr,cb.`name` as brandName,cm.`name` as modelName,c1.`name` as companyName,c2.`name` as franchiseeName,cm.seat,CONCAT(dd.firstName, ' ', dd.lastName) as driverName,cc.* from t_car as cc |
| | | LEFT JOIN (select * from t_car_brand where state = 1) as cb on cb.id = cc.carBrandId |
| | | LEFT JOIN (select * from t_car_model where state = 1) as cm on cm.id = cc.carModelId |
| | | LEFT JOIN (select * from t_company where type = 2 and flag != 3) as c1 on c1.id = cc.companyId |
| | |
| | | |
| | | <!--根据条件查询车辆列表不分页--> |
| | | <select id="getCarListNoPage" resultType="map"> |
| | | SELECT * FROM (SELECT ds.serverStr,cb.`name` as brandName,cm.`name` as modelName,c1.`name` as companyName,c2.`name` as franchiseeName,cm.seat,dd.`name` as driverName,cc.* from t_car as cc |
| | | SELECT * FROM (SELECT ds.serverStr,cb.`name` as brandName,cm.`name` as modelName,c1.`name` as companyName,c2.`name` as franchiseeName,cm.seat,CONCAT(dd.firstName, ' ', dd.lastName) as driverName,cc.* from t_car as cc |
| | | LEFT JOIN (select * from t_car_brand where state = 1) as cb on cb.id = cc.carBrandId |
| | | LEFT JOIN (select * from t_car_model where state = 1) as cm on cm.id = cc.carModelId |
| | | LEFT JOIN (select * from t_company where type = 2 and flag != 3) as c1 on c1.id = cc.companyId |