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
ea98f444
Commit
ea98f444
authored
Jan 03, 2020
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-vehicle-count-bug' into dev
parents
6e1a25e3
f4a481f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
BranchCompanyVehicleCountBiz.java
...fc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
+8
-3
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
View file @
ea98f444
...
@@ -22,6 +22,7 @@ import org.springframework.stereotype.Service;
...
@@ -22,6 +22,7 @@ import org.springframework.stereotype.Service;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
@Service
@Service
@Slf4j
@Slf4j
...
@@ -129,11 +130,15 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
...
@@ -129,11 +130,15 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
}
}
Integer
type
=
branchCompanyVehicleCountDTO
.
getType
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getType
();
Integer
type
=
branchCompanyVehicleCountDTO
.
getType
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getType
();
Query
query
=
new
Query
(
branchCompanyVehicleCountDTO
);
Query
query
=
new
Query
(
branchCompanyVehicleCountDTO
);
Map
<
String
,
Object
>
param
=
query
.
getSuper
();
param
.
remove
(
"page"
);
param
.
remove
(
"limit"
);
log
.
info
(
"导出车辆统计信息:{}"
,
param
);
if
(
type
==
1
)
{
//按天
if
(
type
==
1
)
{
//按天
return
mapper
.
getAllCountInfo
(
query
.
getSuper
()
);
return
mapper
.
getAllCountInfo
(
param
);
}
}
if
(
type
==
2
)
{
//按周
if
(
type
==
2
)
{
//按周
List
<
BranchCompanyVehicleCountVo
>
pageDataVO
=
mapper
.
countByWeek
(
query
.
getSuper
()
);
List
<
BranchCompanyVehicleCountVo
>
pageDataVO
=
mapper
.
countByWeek
(
param
);
if
(
pageDataVO
!=
null
&&
pageDataVO
.
size
()
>
0
)
{
if
(
pageDataVO
!=
null
&&
pageDataVO
.
size
()
>
0
)
{
pageDataVO
.
parallelStream
().
forEach
(
result
->
{
pageDataVO
.
parallelStream
().
forEach
(
result
->
{
String
weekStartDate
=
OrderDateUtils
.
getStartDayOfWeekNo
(
result
.
getCountYear
(),
result
.
getCountWeek
());
String
weekStartDate
=
OrderDateUtils
.
getStartDayOfWeekNo
(
result
.
getCountYear
(),
result
.
getCountWeek
());
...
@@ -145,7 +150,7 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
...
@@ -145,7 +150,7 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
return
pageDataVO
;
return
pageDataVO
;
}
}
if
(
type
==
3
)
{
//按月
if
(
type
==
3
)
{
//按月
return
mapper
.
countByMonth
(
query
.
getSuper
()
);
return
mapper
.
countByMonth
(
param
);
}
}
return
new
ArrayList
<>();
return
new
ArrayList
<>();
}
}
...
...
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