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
d8041988
Commit
d8041988
authored
Jan 03, 2020
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-vehicle-count-bug' into dev
parents
ea98f444
545f48b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
BranchCompanyVehicleCountBiz.java
...fc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
+5
-9
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
View file @
d8041988
...
@@ -21,6 +21,7 @@ import org.springframework.scheduling.annotation.Scheduled;
...
@@ -21,6 +21,7 @@ import org.springframework.scheduling.annotation.Scheduled;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -124,16 +125,11 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
...
@@ -124,16 +125,11 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
public
List
<
BranchCompanyVehicleCountVo
>
exportAllDate
(
BranchCompanyVehicleCountDTO
branchCompanyVehicleCountDTO
)
{
public
List
<
BranchCompanyVehicleCountVo
>
exportAllDate
(
BranchCompanyVehicleCountDTO
branchCompanyVehicleCountDTO
)
{
if
(
StringUtils
.
isBlank
(
branchCompanyVehicleCountDTO
.
getStartTime
())
||
StringUtils
.
isBlank
(
branchCompanyVehicleCountDTO
.
getEndTime
()))
{
branchCompanyVehicleCountDTO
.
setStartTime
(
DateTime
.
now
().
minusDays
(
1
).
toString
(
DATE_TIME_FORMATTER
));
branchCompanyVehicleCountDTO
.
setEndTime
(
DateTime
.
now
().
minusDays
(
1
).
toString
(
DATE_TIME_FORMATTER
));
}
Integer
type
=
branchCompanyVehicleCountDTO
.
getType
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getType
();
Integer
type
=
branchCompanyVehicleCountDTO
.
getType
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getType
();
Query
query
=
new
Query
(
branchCompanyVehicleCountDTO
);
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
Map
<
String
,
Object
>
param
=
query
.
getSuper
();
if
(
branchCompanyVehicleCountDTO
.
getCompanyId
()
!=
null
)
{
param
.
remove
(
"page"
);
param
.
put
(
"companyId"
,
branchCompanyVehicleCountDTO
.
getCompanyId
());
param
.
remove
(
"limit"
);
}
log
.
info
(
"导出车辆统计信息:{}"
,
param
);
if
(
type
==
1
)
{
//按天
if
(
type
==
1
)
{
//按天
return
mapper
.
getAllCountInfo
(
param
);
return
mapper
.
getAllCountInfo
(
param
);
}
}
...
...
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