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
1104ac65
Commit
1104ac65
authored
Nov 19, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台导出车辆信息
parent
eae94df6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
BranchCompanyVehicleCountBiz.java
...fc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
+4
-1
VehicleInformationDownloadBiz.java
...c/platform/vehicle/biz/VehicleInformationDownloadBiz.java
+0
-1
VehicleInformationDownloadController.java
...icle/rest/admin/VehicleInformationDownloadController.java
+0
-1
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
View file @
1104ac65
...
@@ -8,6 +8,7 @@ import com.xxfc.platform.vehicle.entity.BranchCompanyVehicleCount;
...
@@ -8,6 +8,7 @@ import com.xxfc.platform.vehicle.entity.BranchCompanyVehicleCount;
import
com.xxfc.platform.vehicle.mapper.BranchCompanyVehicleCountMapper
;
import
com.xxfc.platform.vehicle.mapper.BranchCompanyVehicleCountMapper
;
import
com.xxfc.platform.vehicle.pojo.dto.BranchCompanyVehicleCountDTO
;
import
com.xxfc.platform.vehicle.pojo.dto.BranchCompanyVehicleCountDTO
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Iterator
;
import
java.util.Iterator
;
...
@@ -16,7 +17,8 @@ import java.util.List;
...
@@ -16,7 +17,8 @@ import java.util.List;
@Service
@Service
@Slf4j
@Slf4j
public
class
BranchCompanyVehicleCountBiz
extends
BaseBiz
<
BranchCompanyVehicleCountMapper
,
BranchCompanyVehicleCount
>
{
public
class
BranchCompanyVehicleCountBiz
extends
BaseBiz
<
BranchCompanyVehicleCountMapper
,
BranchCompanyVehicleCount
>
{
@Autowired
VehicleInformationDownloadBiz
vehicleInformationDownloadBiz
;
public
ObjectRestResponse
add
(
List
<
BranchCompanyVehicleCount
>
branchCompanyVehicleCounts
)
{
public
ObjectRestResponse
add
(
List
<
BranchCompanyVehicleCount
>
branchCompanyVehicleCounts
)
{
if
(
branchCompanyVehicleCounts
==
null
)
{
if
(
branchCompanyVehicleCounts
==
null
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
return
ObjectRestResponse
.
paramIsEmpty
();
...
@@ -34,6 +36,7 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
...
@@ -34,6 +36,7 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
}
}
public
ObjectRestResponse
<
PageDataVO
<
BranchCompanyVehicleCount
>>
findAll
(
BranchCompanyVehicleCountDTO
branchCompanyVehicleCountDTO
)
{
public
ObjectRestResponse
<
PageDataVO
<
BranchCompanyVehicleCount
>>
findAll
(
BranchCompanyVehicleCountDTO
branchCompanyVehicleCountDTO
)
{
vehicleInformationDownloadBiz
.
add
();
Integer
pageNo
=
branchCompanyVehicleCountDTO
.
getPage
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getPage
();
Integer
pageNo
=
branchCompanyVehicleCountDTO
.
getPage
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getPage
();
Integer
pageSize
=
branchCompanyVehicleCountDTO
.
getLimit
()
==
null
?
10
:
branchCompanyVehicleCountDTO
.
getLimit
();
Integer
pageSize
=
branchCompanyVehicleCountDTO
.
getLimit
()
==
null
?
10
:
branchCompanyVehicleCountDTO
.
getLimit
();
branchCompanyVehicleCountDTO
.
setPage
(
pageNo
);
branchCompanyVehicleCountDTO
.
setPage
(
pageNo
);
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleInformationDownloadBiz.java
View file @
1104ac65
...
@@ -103,7 +103,6 @@ public class VehicleInformationDownloadBiz extends BaseBiz<VehicleMapper, Vehicl
...
@@ -103,7 +103,6 @@ public class VehicleInformationDownloadBiz extends BaseBiz<VehicleMapper, Vehicl
}
}
public
List
<
BranchCompanyVehicleCountVo
>
getAllVehicleInfo
()
{
public
List
<
BranchCompanyVehicleCountVo
>
getAllVehicleInfo
()
{
add
();
return
vehicleBiz
.
getAllVehicleInfo
();
return
vehicleBiz
.
getAllVehicleInfo
();
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/VehicleInformationDownloadController.java
View file @
1104ac65
...
@@ -84,7 +84,6 @@ public class VehicleInformationDownloadController extends BaseController<Vehicle
...
@@ -84,7 +84,6 @@ 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
.
merge
(
2
,
"导出车辆数据"
);
writer
.
addHeaderAlias
(
"countDate"
,
"日期"
);
writer
.
addHeaderAlias
(
"countDate"
,
"日期"
);
writer
.
addHeaderAlias
(
"companyName"
,
"停靠分公司"
);
writer
.
addHeaderAlias
(
"companyName"
,
"停靠分公司"
);
writer
.
addHeaderAlias
(
"vehicleNum"
,
"车辆数量"
);
writer
.
addHeaderAlias
(
"vehicleNum"
,
"车辆数量"
);
...
...
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