Commit 314ae637 by 刘宇峰

新增车辆-车型管理

1 parent 4c368c3d
...@@ -27,15 +27,20 @@ public class TrialDriveVehicleExport { ...@@ -27,15 +27,20 @@ public class TrialDriveVehicleExport {
@ExcelProperty(value = "车架号", index = 2) @ExcelProperty(value = "车架号", index = 2)
private String vin; private String vin;
/** /**
* 车型名称 * 车型
*/ */
@ExcelProperty(value = "车型名称", index = 3) @ExcelProperty(value = "车系", index = 3)
private String modelName; private String seriesName;
/**
* 车型
*/
@ExcelProperty(value = "车型", index = 4)
private String typeName;
/** /**
* 配置 * 配置
*/ */
@ExcelProperty(value = "配置", index = 4) // @ExcelProperty(value = "配置", index = 5)
private String configDesc; // private String configDesc;
/** /**
* 车牌 * 车牌
*/ */
...@@ -62,5 +67,4 @@ public class TrialDriveVehicleExport { ...@@ -62,5 +67,4 @@ public class TrialDriveVehicleExport {
@ExcelProperty(value = "设备号", index = 9) @ExcelProperty(value = "设备号", index = 9)
private String sns; private String sns;
} }
...@@ -123,10 +123,17 @@ ...@@ -123,10 +123,17 @@
</select> </select>
<select id="searchTrialDrive" resultType="cn.com.glsx.admin.modules.model.TrialDriveVehiclePageDTO"> <select id="searchTrialDrive" resultType="cn.com.glsx.admin.modules.model.TrialDriveVehiclePageDTO">
select tv.id tempId, tv.vin, tv.model_name+series_name,tv.model_name modelName, tv.config_desc configDesc, select tv.id tempId,
tv.license_plate licensePlate, tv.created_by createdBy, tv.vin,
tu.username shopName, tu.account shopCode, ttds.shop_level shopLevel, case when tv.type_id is null then tv.model_name else concat(tv.sub_brand_name, '/', series_name) end seriesName,
group_concat(tvd.sn) sns, tvd.created_date installedTime case when tv.type_id is null then tv.config_desc else tv.type_name end typeName,
tv.license_plate licensePlate,
tv.created_by createdBy,
tu.username shopName,
tu.account shopCode,
ttds.shop_level shopLevel,
group_concat(tvd.sn) sns,
tvd.created_date installedTime
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
...@@ -138,9 +145,14 @@ ...@@ -138,9 +145,14 @@
</select> </select>
<select id="exportDriveVehicle" resultType="cn.com.glsx.admin.modules.model.export.TrialDriveVehicleExport"> <select id="exportDriveVehicle" resultType="cn.com.glsx.admin.modules.model.export.TrialDriveVehicleExport">
select tv.vin, tv.model_name modelName, tv.config_desc configDesc, tv.license_plate licensePlate, tv.model_name select tv.vin,
modelName, case when tv.type_id is null then tv.model_name else concat(tv.sub_brand_name, '/', series_name) end seriesName,
tv.color, tv.inner_color innerColor, tv.serve_type serveType, case when tv.type_id is null then tv.config_desc else tv.type_name end typeName,
tv.license_plate licensePlate,
tv.model_name modelName,
tv.color,
tv.inner_color innerColor,
tv.serve_type serveType,
tu.username shopName, tu.account shopCode, tu.username shopName, tu.account shopCode,
group_concat(tvd.sn) sns group_concat(tvd.sn) sns
from t_vehicle tv from t_vehicle tv
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!