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
38184407
Commit
38184407
authored
Oct 18, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单统计
parent
dd29b91e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
BaseOrderStatisticsJobHandler.java
...tform/order/jobhandler/BaseOrderStatisticsJobHandler.java
+5
-4
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/jobhandler/BaseOrderStatisticsJobHandler.java
View file @
38184407
...
@@ -102,10 +102,11 @@ public class BaseOrderStatisticsJobHandler extends IJobHandler {
...
@@ -102,10 +102,11 @@ public class BaseOrderStatisticsJobHandler extends IJobHandler {
maxDate
=
currentTime
;
maxDate
=
currentTime
;
}
}
//距离今天的最小天数差
int
minDay
=
(
int
)
((
currentTime
-
minDate
)/(
24
*
60
*
60
*
1000
));
//距离今天的最大天数差
//距离今天的最大天数差
int
maxDay
=
(
int
)
((
currentTime
-
maxDate
)/(
24
*
60
*
60
*
1000
));
int
maxDay
=
(
int
)
((
currentTime
-
minDate
)/(
24
*
60
*
60
*
1000
));
//距离今天的最小天数差
int
minDay
=
(
int
)
((
currentTime
-
maxDate
)/(
24
*
60
*
60
*
1000
));
return
getListByMinDayAndMaxDay
(
minDay
,
maxDay
);
return
getListByMinDayAndMaxDay
(
minDay
,
maxDay
);
...
@@ -121,7 +122,7 @@ public class BaseOrderStatisticsJobHandler extends IJobHandler {
...
@@ -121,7 +122,7 @@ public class BaseOrderStatisticsJobHandler extends IJobHandler {
private
ArrayList
<
Integer
>
getListByMinDayAndMaxDay
(
int
minDay
,
int
maxDay
){
private
ArrayList
<
Integer
>
getListByMinDayAndMaxDay
(
int
minDay
,
int
maxDay
){
ArrayList
<
Integer
>
arrayList
=
Lists
.
newArrayList
();
ArrayList
<
Integer
>
arrayList
=
Lists
.
newArrayList
();
for
(
int
day
=
maxDay
;
day
<=
maxDay
;
day
++
){
for
(
int
day
=
maxDay
;
day
>=
minDay
;
day
--
){
arrayList
.
add
(
day
);
arrayList
.
add
(
day
);
}
}
return
arrayList
;
return
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