Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 314ae637
authored
Aug 19, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增车辆-车型管理
1 parent
4c368c3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
13 deletions
src/main/java/cn/com/glsx/admin/modules/model/export/TrialDriveVehicleExport.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/export/TrialDriveVehicleExport.java
View file @
314ae63
...
...
@@ -27,15 +27,20 @@ public class TrialDriveVehicleExport {
@ExcelProperty
(
value
=
"车架号"
,
index
=
2
)
private
String
vin
;
/**
* 车型
名称
* 车型
*/
@ExcelProperty
(
value
=
"车型名称"
,
index
=
3
)
private
String
modelName
;
@ExcelProperty
(
value
=
"车系"
,
index
=
3
)
private
String
seriesName
;
/**
* 车型
*/
@ExcelProperty
(
value
=
"车型"
,
index
=
4
)
private
String
typeName
;
/**
* 配置
*/
@ExcelProperty
(
value
=
"配置"
,
index
=
4
)
private
String
configDesc
;
// @ExcelProperty(value = "配置", index = 5
)
//
private String configDesc;
/**
* 车牌
*/
...
...
@@ -62,5 +67,4 @@ public class TrialDriveVehicleExport {
@ExcelProperty
(
value
=
"设备号"
,
index
=
9
)
private
String
sns
;
}
src/main/resources/mapper/VehicleMapper.xml
View file @
314ae63
...
...
@@ -123,10 +123,17 @@
</select>
<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,
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
select tv.id tempId,
tv.vin,
case when tv.type_id is null then tv.model_name else concat(tv.sub_brand_name, '/', series_name) end seriesName,
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
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
...
...
@@ -138,9 +145,14 @@
</select>
<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
modelName,
tv.color, tv.inner_color innerColor, tv.serve_type serveType,
select tv.vin,
case when tv.type_id is null then tv.model_name else concat(tv.sub_brand_name, '/', series_name) end seriesName,
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,
group_concat(tvd.sn) sns
from t_vehicle tv
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment