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 e50fd0d4
authored
Sep 26, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车辆信息导入时 添加车架号和组织名联合校验
1 parent
c0518829
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
src/main/java/cn/com/glsx/admin/modules/model/param/TestVehicleSearch.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
View file @
e50fd0d
...
@@ -79,6 +79,10 @@ public class VehicleController {
...
@@ -79,6 +79,10 @@ public class VehicleController {
@SysLog
(
module
=
MODULE
,
value
=
"查询该组织下没有绑定为试驾车辆的列表"
,
action
=
OperateType
.
QUERY
)
@SysLog
(
module
=
MODULE
,
value
=
"查询该组织下没有绑定为试驾车辆的列表"
,
action
=
OperateType
.
QUERY
)
@GetMapping
(
"/drivevehicle/listtestdrive"
)
@GetMapping
(
"/drivevehicle/listtestdrive"
)
public
R
listTestDriveVehicle
(
TestVehicleSearch
testVehicleVo
)
{
public
R
listTestDriveVehicle
(
TestVehicleSearch
testVehicleVo
)
{
String
shopId
=
testVehicleVo
.
getShopId
();
if
(
StringUtils
.
isNotEmpty
(
shopId
))
{
testVehicleVo
.
setShopId
(
shopId
.
replaceAll
(
"u"
,
""
));
}
PageInfo
<
TestVehicleDTO
>
testDriveVehicleList
=
vehicleService
.
listTestDriveVehicle
(
testVehicleVo
);
PageInfo
<
TestVehicleDTO
>
testDriveVehicleList
=
vehicleService
.
listTestDriveVehicle
(
testVehicleVo
);
return
R
.
ok
().
putPageData
(
testDriveVehicleList
);
return
R
.
ok
().
putPageData
(
testDriveVehicleList
);
}
}
...
@@ -312,7 +316,7 @@ public class VehicleController {
...
@@ -312,7 +316,7 @@ public class VehicleController {
@ApiOperation
(
value
=
"导入车辆信息列表"
)
@ApiOperation
(
value
=
"导入车辆信息列表"
)
@PostMapping
(
value
=
"/vehicleinfo/import"
,
consumes
=
MediaType
.
MULTIPART_FORM_DATA_VALUE
)
@PostMapping
(
value
=
"/vehicleinfo/import"
,
consumes
=
MediaType
.
MULTIPART_FORM_DATA_VALUE
)
public
R
importVehicleInfo
(
@RequestParam
(
"file"
)
MultipartFile
file
)
throws
IOException
{
public
R
importVehicleInfo
(
@RequestParam
(
"file"
)
MultipartFile
file
)
throws
IOException
{
VehicleInfoImportListener
listener
=
new
VehicleInfoImportListener
(
vehicleService
,
deviceService
,
userApiService
);
VehicleInfoImportListener
listener
=
new
VehicleInfoImportListener
(
vehicleService
,
deviceService
,
userApiService
);
EasyExcel
.
read
(
file
.
getInputStream
(),
VehicleInfoImport
.
class
,
listener
)
EasyExcel
.
read
(
file
.
getInputStream
(),
VehicleInfoImport
.
class
,
listener
)
.
head
(
VehicleInfoImport
.
class
)
.
head
(
VehicleInfoImport
.
class
)
.
ignoreEmptyRow
(
false
)
.
ignoreEmptyRow
(
false
)
...
...
src/main/java/cn/com/glsx/admin/modules/model/param/TestVehicleSearch.java
View file @
e50fd0d
...
@@ -46,5 +46,5 @@ public class TestVehicleSearch extends Page {
...
@@ -46,5 +46,5 @@ public class TestVehicleSearch extends Page {
/**
/**
* 特约店id
* 特约店id
*/
*/
private
Integer
shopId
;
private
String
shopId
;
}
}
src/main/resources/mapper/VehicleMapper.xml
View file @
e50fd0d
...
@@ -419,7 +419,7 @@
...
@@ -419,7 +419,7 @@
<if
test=
"buyDateEnd != null and buyDateEnd !=''"
>
<if
test=
"buyDateEnd != null and buyDateEnd !=''"
>
and tv.buy_date
<
= #{buyDateEnd}
and tv.buy_date
<
= #{buyDateEnd}
</if>
</if>
<if
test=
"shopId != null "
>
<if
test=
"shopId != null
and shopId !=''
"
>
and tu.id = #{shopId}
and tu.id = #{shopId}
</if>
</if>
GROUP BY tv.vin
GROUP BY tv.vin
...
...
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