Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
098f6cb7
Commit
098f6cb7
authored
Dec 26, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆详情列表下载
parent
8b81605f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
ResultVehicleVo.java
.../java/com/xxfc/platform/vehicle/pojo/ResultVehicleVo.java
+1
-1
VehicleExcelVo.java
...n/java/com/xxfc/platform/vehicle/pojo/VehicleExcelVo.java
+1
-1
VehicleInformationDownloadBiz.java
...c/platform/vehicle/biz/VehicleInformationDownloadBiz.java
+12
-7
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/ResultVehicleVo.java
View file @
098f6cb7
...
...
@@ -118,7 +118,7 @@ public class ResultVehicleVo {
/**
* 交强险公司
*/
private
String
strongInsuranceCompany
;
private
Integer
strongInsuranceCompany
;
/**
* 交强险单号
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/VehicleExcelVo.java
View file @
098f6cb7
...
...
@@ -79,7 +79,7 @@ public class VehicleExcelVo {
/**
* 商业险公司,见常量表
*/
private
Integer
insuranceCompany
;
private
String
insuranceCompany
;
/**
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleInformationDownloadBiz.java
View file @
098f6cb7
package
com
.
xxfc
.
platform
.
vehicle
.
biz
;
import
com.alibaba.fastjson.JSON
;
import
com.github.wxiaoqi.security.admin.entity.Group
;
import
com.github.wxiaoqi.security.admin.feign.dto.UserDTO
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.google.common.collect.Lists
;
import
com.xxfc.platform.vehicle.entity.Constant
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.mapper.VehicleMapper
;
import
com.xxfc.platform.vehicle.pojo.ResultVehicleVo
;
...
...
@@ -22,6 +24,7 @@ import java.util.ArrayList;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
@Service
@Slf4j
...
...
@@ -29,7 +32,8 @@ public class VehicleInformationDownloadBiz extends BaseBiz<VehicleMapper, Vehicl
@Autowired
private
VehicleBiz
vehicleBiz
;
@Autowired
private
ConstantBiz
constantBiz
;
@Autowired
private
BranchCompanyVehicleCountBiz
branchCompanyVehicleCountBiz
;
...
...
@@ -83,14 +87,15 @@ public class VehicleInformationDownloadBiz extends BaseBiz<VehicleMapper, Vehicl
public
List
<
VehicleExcelVo
>
getList
(
String
vehiclePageQueryVoJson
,
UserDTO
userDTO
)
throws
Exception
{
List
<
Constant
>
constants
=
constantBiz
.
selectList
(
new
Constant
()
{{
setType
(
3
);
}});
Map
<
Integer
,
List
<
Constant
>>
map
=
constants
.
parallelStream
().
collect
(
Collectors
.
groupingBy
(
Constant:
:
getCode
));
List
<
ResultVehicleVo
>
resultVehicleVoList
=
getResultVehicleVoList
(
vehiclePageQueryVoJson
,
userDTO
);
ArrayList
<
VehicleExcelVo
>
arrayList
=
Lists
.
newArrayList
();
resultVehicleVoList
.
stream
().
forEach
(
result
->{
try
{
Integer
belongTo
=
result
.
getBelongTo
();
if
(
belongTo
!=
null
&&
belongTo
==
1
)
{
System
.
out
.
println
(
belongTo
);
}
VehicleExcelVo
build
=
VehicleExcelVo
.
builder
()
.
code
(
result
.
getCode
())
.
numberPlate
(
result
.
getNumberPlate
())
...
...
@@ -101,10 +106,10 @@ public class VehicleInformationDownloadBiz extends BaseBiz<VehicleMapper, Vehicl
.
belongToName
(
result
.
getBelongTo
()!=
null
&&
result
.
getBelongTo
()==
1
?
"欣新房车有限公司"
:
result
.
getBelongToName
())
.
vin
(
result
.
getVin
())
.
engineNum
(
result
.
getEngineNum
())
.
insuranceCompany
(
result
.
getInsuranceCompany
()
)
.
insuranceCompany
(
result
.
getInsuranceCompany
()!=
null
?
map
.
get
(
result
.
getInsuranceCompany
()).
get
(
0
).
getVal
():
null
)
.
insuranceNo
(
result
.
getInsuranceNo
())
.
insuranceEndDate
(
result
.
getInsuranceEndDate
())
.
strongInsuranceCompany
(
result
.
getStrongInsuranceCompany
())
.
strongInsuranceCompany
(
result
.
getStrongInsuranceCompany
()
!=
null
?
map
.
get
(
result
.
getStrongInsuranceCompany
()).
get
(
0
).
getVal
():
null
)
.
strongInsuranceNo
(
result
.
getInsuranceNo
())
.
strongInsuranceEndDate
(
result
.
getStrongInsuranceEndDate
())
.
build
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment