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
dff317bc
Commit
dff317bc
authored
Nov 19, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-vehicle-bg' into base-modify
parents
293bf7af
1b8106c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
8 deletions
+2
-8
BranchCompanyVehicleCount.java
...fc/platform/vehicle/entity/BranchCompanyVehicleCount.java
+0
-5
VehicleInformationDownloadBiz.java
...c/platform/vehicle/biz/VehicleInformationDownloadBiz.java
+0
-1
VehicleInformationDownloadController.java
...icle/rest/admin/VehicleInformationDownloadController.java
+1
-0
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+1
-2
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/entity/BranchCompanyVehicleCount.java
View file @
dff317bc
...
@@ -34,10 +34,5 @@ public class BranchCompanyVehicleCount {
...
@@ -34,10 +34,5 @@ public class BranchCompanyVehicleCount {
@Column
(
name
=
"count_date"
)
@Column
(
name
=
"count_date"
)
private
Date
countDate
;
private
Date
countDate
;
/**
* 公司ID
*/
@Column
(
name
=
"company_id"
)
private
Integer
companyId
;
}
}
\ No newline at end of file
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleInformationDownloadBiz.java
View file @
dff317bc
...
@@ -114,7 +114,6 @@ public class VehicleInformationDownloadBiz extends BaseBiz<VehicleMapper, Vehicl
...
@@ -114,7 +114,6 @@ public class VehicleInformationDownloadBiz extends BaseBiz<VehicleMapper, Vehicl
branchCompanyVehicleCountVos
.
parallelStream
().
forEach
(
result
->{
branchCompanyVehicleCountVos
.
parallelStream
().
forEach
(
result
->{
try
{
try
{
BranchCompanyVehicleCount
branchCompanyVehicleCount
=
new
BranchCompanyVehicleCount
();
BranchCompanyVehicleCount
branchCompanyVehicleCount
=
new
BranchCompanyVehicleCount
();
branchCompanyVehicleCount
.
setCompanyId
(
result
.
getCompanyId
());
branchCompanyVehicleCount
.
setCompanyName
(
result
.
getParkBranchCompanyName
());
branchCompanyVehicleCount
.
setCompanyName
(
result
.
getParkBranchCompanyName
());
branchCompanyVehicleCount
.
setVehicleNum
(
result
.
getCount
());
branchCompanyVehicleCount
.
setVehicleNum
(
result
.
getCount
());
DateTime
dateTime
=
DateTime
.
now
();
DateTime
dateTime
=
DateTime
.
now
();
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/VehicleInformationDownloadController.java
View file @
dff317bc
...
@@ -84,6 +84,7 @@ public class VehicleInformationDownloadController extends BaseController<Vehicle
...
@@ -84,6 +84,7 @@ public class VehicleInformationDownloadController extends BaseController<Vehicle
}
}
List
<
BranchCompanyVehicleCount
>
rows
=
pageDataVO
.
getData
();
List
<
BranchCompanyVehicleCount
>
rows
=
pageDataVO
.
getData
();
ExcelWriter
writer
=
ExcelUtil
.
getWriter
(
true
);
ExcelWriter
writer
=
ExcelUtil
.
getWriter
(
true
);
writer
.
addHeaderAlias
(
"id"
,
"ID"
);
writer
.
addHeaderAlias
(
"countDate"
,
"日期"
);
writer
.
addHeaderAlias
(
"countDate"
,
"日期"
);
writer
.
addHeaderAlias
(
"companyName"
,
"停靠分公司"
);
writer
.
addHeaderAlias
(
"companyName"
,
"停靠分公司"
);
writer
.
addHeaderAlias
(
"vehicleNum"
,
"车辆数量"
);
writer
.
addHeaderAlias
(
"vehicleNum"
,
"车辆数量"
);
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
dff317bc
...
@@ -589,8 +589,7 @@
...
@@ -589,8 +589,7 @@
<select
id=
"getAllVehicleInfo"
resultType=
"com.xxfc.platform.vehicle.pojo.BranchCompanyVehicleCountVo"
>
<select
id=
"getAllVehicleInfo"
resultType=
"com.xxfc.platform.vehicle.pojo.BranchCompanyVehicleCountVo"
>
SELECT
SELECT
b1. NAME AS parkBranchCompanyName,
b1. NAME AS parkBranchCompanyName,
count(v1.id) as count,
count(v1.id) as count
b1.id as companyId
FROM
FROM
branch_company b1
branch_company b1
LEFT JOIN vehicle v1 ON v1.park_branch_company_id = b1.id
LEFT JOIN vehicle v1 ON v1.park_branch_company_id = b1.id
...
...
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