Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-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
wj-datacenter-platform
Commits
8b28a7a9
Commit
8b28a7a9
authored
Jun 26, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 缓存参数刷新
parent
25ac7432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
DataCenterTask.java
...c/main/java/net/wanji/datacenter/task/DataCenterTask.java
+10
-3
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/task/DataCenterTask.java
View file @
8b28a7a9
...
@@ -6,9 +6,7 @@ import net.wanji.databus.dao.entity.CrossSectionPO;
...
@@ -6,9 +6,7 @@ import net.wanji.databus.dao.entity.CrossSectionPO;
import
net.wanji.databus.dao.entity.GreenwaveCrossPO
;
import
net.wanji.databus.dao.entity.GreenwaveCrossPO
;
import
net.wanji.databus.dao.mapper.BaseCrossSchemeMapper
;
import
net.wanji.databus.dao.mapper.BaseCrossSchemeMapper
;
import
net.wanji.databus.dao.mapper.BaseCrossSectionMapper
;
import
net.wanji.databus.dao.mapper.BaseCrossSectionMapper
;
import
net.wanji.datacenter.cache.CrossGreenWaveInfoCache
;
import
net.wanji.datacenter.cache.*
;
import
net.wanji.datacenter.cache.CrossSchemePhaseLightsCache
;
import
net.wanji.datacenter.cache.WeekDirFreeFlowSpeedCache
;
import
net.wanji.datacenter.pojo.dto.CrossSchemePhaseDirTurnDTO
;
import
net.wanji.datacenter.pojo.dto.CrossSchemePhaseDirTurnDTO
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
...
@@ -32,6 +30,12 @@ public class DataCenterTask {
...
@@ -32,6 +30,12 @@ public class DataCenterTask {
@Resource
@Resource
private
WeekDirFreeFlowSpeedCache
weekDirFreeFlowSpeedCache
;
private
WeekDirFreeFlowSpeedCache
weekDirFreeFlowSpeedCache
;
@Resource
private
WeekTurnFreeFlowSpeedCache
weekTurnFreeFlowSpeedCache
;
@Resource
private
CrossDirWeekAvgFlowCache
crossDirWeekAvgFlowCache
;
@Resource
private
CrossDirWeekMaxFlowCache
crossDirWeekMaxFlowCache
;
@Resource
@Resource
private
BaseCrossSectionMapper
baseCrossSectionMapper
;
private
BaseCrossSectionMapper
baseCrossSectionMapper
;
...
@@ -41,6 +45,9 @@ public class DataCenterTask {
...
@@ -41,6 +45,9 @@ public class DataCenterTask {
@Scheduled
(
cron
=
"0 0 0 * * ?"
)
@Scheduled
(
cron
=
"0 0 0 * * ?"
)
public
void
getWeekFreeFlowSpeed
()
throws
Exception
{
public
void
getWeekFreeFlowSpeed
()
throws
Exception
{
weekDirFreeFlowSpeedCache
.
run
();
weekDirFreeFlowSpeedCache
.
run
();
weekTurnFreeFlowSpeedCache
.
run
();
crossDirWeekAvgFlowCache
.
run
();
crossDirWeekMaxFlowCache
.
run
();
}
}
@Scheduled
(
initialDelay
=
1000
*
60
,
fixedRate
=
1000
*
60
*
60
)
@Scheduled
(
initialDelay
=
1000
*
60
,
fixedRate
=
1000
*
60
*
60
)
...
...
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