Commit 8d916964 by 黄小葱

修改特约店关联

1 parent f4185393
...@@ -46,6 +46,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> { ...@@ -46,6 +46,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
* @param search * @param search
* @return * @return
*/ */
@DataPerm(showSql = true)
List<TrialDriveVehicleExport> exportDriveVehicle(VehicleManageSearch search); List<TrialDriveVehicleExport> exportDriveVehicle(VehicleManageSearch search);
/** /**
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
from t_vehicle tv from t_vehicle tv
left join t_vehicle_device tvd on tv.id = tvd.vehicle_id and tvd.bind_status = 1 and tvd.del_flag = 0 left join t_vehicle_device tvd on tv.id = tvd.vehicle_id and tvd.bind_status = 1 and tvd.del_flag = 0
left join t_user tu on tv.created_by = tu.id and tu.del_flag = 0 left join t_user tu on tv.created_by = tu.id and tu.del_flag = 0
left join t_trial_drive_shop ttds on tu.account = ttds.shop_code and ttds.del_flag = 0 left join t_trial_drive_shop ttds on tu.id = ttds.created_by and ttds.del_flag = 0
where tv.del_flag = 0 where tv.del_flag = 0
<include refid="search_sql_condition" /> <include refid="search_sql_condition" />
group by tv.id group by tv.id
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
from t_vehicle tv from t_vehicle tv
left join t_vehicle_device tvd on tv.id = tvd.vehicle_id and tvd.bind_status = 1 and tvd.del_flag = 0 left join t_vehicle_device tvd on tv.id = tvd.vehicle_id and tvd.bind_status = 1 and tvd.del_flag = 0
left join t_user tu on tv.created_by = tu.id and tu.del_flag = 0 left join t_user tu on tv.created_by = tu.id and tu.del_flag = 0
left join t_trial_drive_shop ttds on tu.account = ttds.shop_code and ttds.del_flag = 0 left join t_trial_drive_shop ttds on tu.id = ttds.created_by and ttds.del_flag = 0
where tv.del_flag = 0 where tv.del_flag = 0
<include refid="search_sql_condition" /> <include refid="search_sql_condition" />
group by tv.id group by tv.id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!