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 00916af1
authored
May 27, 2021
by
黄小葱
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
试驾车辆
1 parent
08688813
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
src/main/java/cn/com/glsx/admin/config/WebConfig.java
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
src/main/java/cn/com/glsx/admin/modules/model/param/SyncVehicleBo.java
src/main/java/cn/com/glsx/admin/modules/model/param/TrackInfoBo.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/config/WebConfig.java
View file @
00916af
...
@@ -26,6 +26,7 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -26,6 +26,7 @@ public class WebConfig implements WebMvcConfigurer {
.
excludePathPatterns
(
"swagger-ui.html"
)
.
excludePathPatterns
(
"swagger-ui.html"
)
.
excludePathPatterns
(
"/actuator/**"
)
.
excludePathPatterns
(
"/actuator/**"
)
.
excludePathPatterns
(
"/api/**"
)
.
excludePathPatterns
(
"/api/**"
)
.
excludePathPatterns
(
"/vehicle/drivevehicle/syncVehicleInfo"
)
.
excludePathPatterns
(
"/swagger-resources/**"
,
"/webjars/**"
,
"/v2/**"
,
"/swagger-ui.html/**"
);
.
excludePathPatterns
(
"/swagger-resources/**"
,
"/webjars/**"
,
"/v2/**"
,
"/swagger-ui.html/**"
);
}
}
...
...
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
View file @
00916af
...
@@ -143,7 +143,7 @@ public class VehicleController {
...
@@ -143,7 +143,7 @@ public class VehicleController {
FileIOUtil
.
download
(
inputStream
,
FileIOUtil
.
MimeType
.
EXCEL2007
,
fileName
,
response
);
FileIOUtil
.
download
(
inputStream
,
FileIOUtil
.
MimeType
.
EXCEL2007
,
fileName
,
response
);
}
}
@PostMapping
(
"/drivevehicle/syncVehicleInfo"
)
@PostMapping
(
value
=
"/drivevehicle/syncVehicleInfo"
,
consumes
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@SysLog
(
"包活干同步车辆信息"
)
@SysLog
(
"包活干同步车辆信息"
)
@ApiOperation
(
value
=
"包活干同步车辆信息"
)
@ApiOperation
(
value
=
"包活干同步车辆信息"
)
public
R
syncVehicleInfoFromBhg
(
@RequestBody
@Validated
(
ValidateGroups
.
Insert
.
class
)
SyncVehicleBo
vehicleBo
)
{
public
R
syncVehicleInfoFromBhg
(
@RequestBody
@Validated
(
ValidateGroups
.
Insert
.
class
)
SyncVehicleBo
vehicleBo
)
{
...
...
src/main/java/cn/com/glsx/admin/modules/model/param/SyncVehicleBo.java
View file @
00916af
...
@@ -20,10 +20,10 @@ public class SyncVehicleBo {
...
@@ -20,10 +20,10 @@ public class SyncVehicleBo {
// @NotNull(message = "sign不能为空", groups = {ValidateGroups.Update.class,ValidateGroups.Delete.class})
// @NotNull(message = "sign不能为空", groups = {ValidateGroups.Update.class,ValidateGroups.Delete.class})
// private String sign;
// private String sign;
/
/ /
**
/**
//
* e盾的工单编号
* e盾的工单编号
//
*/
*/
// private Integer
eDunWorkOrderNo;
private
String
eDunWorkOrderNo
;
/**
/**
* 推送节点时间 格式:yyyy-MM-dd mm:ss:dd
* 推送节点时间 格式:yyyy-MM-dd mm:ss:dd
...
...
src/main/java/cn/com/glsx/admin/modules/model/param/TrackInfoBo.java
View file @
00916af
...
@@ -8,7 +8,7 @@ import java.util.Date;
...
@@ -8,7 +8,7 @@ import java.util.Date;
public
class
TrackInfoBo
{
public
class
TrackInfoBo
{
//
private Integer id;
private
Integer
id
;
private
String
deviceType
;
private
String
deviceType
;
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
00916af
...
@@ -90,8 +90,7 @@
...
@@ -90,8 +90,7 @@
<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 modelName, tv.config_desc configDesc,
select tv.id tempId, tv.vin, tv.model_name modelName, tv.config_desc configDesc,
tv.license_plate licensePlate,
tv.license_plate licensePlate,
ttds.area, ttds.province, ttds.city, ttds.shop_name shopName, ttds.shop_code shopCode, ttds.shop_level
ttds.area, ttds.province, ttds.city, ttds.shop_name shopName, ttds.shop_code shopCode, ttds.shop_level shopLevel,
shop_code,
group_concat(tvd.sn) sns, tvd.created_date installedTime
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
...
...
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