Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
jinan
traffic-signal-platform
Commits
1b2afdd4
Commit
1b2afdd4
authored
Apr 16, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按天计算
parent
504d9a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
OptimizeStatisticTask.java
...c/main/java/net/wanji/opt/task/OptimizeStatisticTask.java
+4
-3
No files found.
signal-optimize-data-compute/src/main/java/net/wanji/opt/task/OptimizeStatisticTask.java
View file @
1b2afdd4
...
...
@@ -192,7 +192,7 @@ public class OptimizeStatisticTask {
* 单点策略优化时长计算
*/
// @Scheduled(cron = "0 0/6 * * * * ")
//
@Scheduled(cron = "0 20 3 * * * ")
@Scheduled
(
cron
=
"0 20 3 * * * "
)
public
void
optimizeDurationCal
()
{
long
st
=
System
.
currentTimeMillis
();
...
...
@@ -200,8 +200,9 @@ public class OptimizeStatisticTask {
//路口策略下方记录
Date
nowDate
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
date
();
Date
beginOfDay
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
lastWeek
();
//.beginOfDay(nowDate);
beginOfDay
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
beginOfWeek
(
beginOfDay
);
Date
beginOfDay
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
beginOfDay
(
nowDate
);
//.lastWeek();//
//beginOfDay = cn.hutool.core.date.DateUtil.beginOfWeek(beginOfDay);
Date
endOfDay
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
endOfDay
(
nowDate
);
//DateUtil.endOfDay(DateUtil.date());
while
(
beginOfDay
.
before
(
endOfDay
))
{
...
...
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