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
094fce64
Commit
094fce64
authored
Dec 11, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 空放事件优化路口名称
parent
95ee22f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
CrossInfoCache.java
.../main/java/net/wanji/datacenter/cache/CrossInfoCache.java
+11
-0
CrossStrategyOptServiceImpl.java
.../datacenter/service/impl/CrossStrategyOptServiceImpl.java
+3
-0
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/cache/CrossInfoCache.java
View file @
094fce64
...
@@ -39,6 +39,17 @@ public class CrossInfoCache implements InitializingBean {
...
@@ -39,6 +39,17 @@ public class CrossInfoCache implements InitializingBean {
}
}
return
Collections
.
emptyList
();
return
Collections
.
emptyList
();
}
}
public
static
String
getName
(
String
crossId
)
{
if
(!
CollectionUtils
.
isEmpty
(
crossInfoList
))
{
for
(
BaseCrossInfoPO
baseCrossInfoPO
:
crossInfoList
)
{
if
(
crossId
.
equals
(
baseCrossInfoPO
.
getId
()))
{
return
baseCrossInfoPO
.
getName
();
}
}
}
return
"龙鼎大道与西山东路交叉口"
;
}
@Override
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
public
void
afterPropertiesSet
()
throws
Exception
{
List
<
BaseCrossInfoPO
>
baseCrossInfoPOS
=
baseCrossInfoMapper
.
selectAll
();
List
<
BaseCrossInfoPO
>
baseCrossInfoPOS
=
baseCrossInfoMapper
.
selectAll
();
...
...
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/CrossStrategyOptServiceImpl.java
View file @
094fce64
...
@@ -3,6 +3,7 @@ package net.wanji.datacenter.service.impl;
...
@@ -3,6 +3,7 @@ package net.wanji.datacenter.service.impl;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
net.wanji.common.utils.tool.JacksonUtils
;
import
net.wanji.common.utils.tool.JacksonUtils
;
import
net.wanji.datacenter.cache.CrossInfoCache
;
import
net.wanji.datacenter.mapper.CrossStrategyResultMapper
;
import
net.wanji.datacenter.mapper.CrossStrategyResultMapper
;
import
net.wanji.datacenter.pojo.dto.ImbalanceAlgorithmDTO
;
import
net.wanji.datacenter.pojo.dto.ImbalanceAlgorithmDTO
;
import
net.wanji.datacenter.pojo.dto.PhaseEmptyDataDTO
;
import
net.wanji.datacenter.pojo.dto.PhaseEmptyDataDTO
;
...
@@ -54,6 +55,8 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
...
@@ -54,6 +55,8 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
entity
.
setExtendTime
(
countDown
);
entity
.
setExtendTime
(
countDown
);
entity
.
setResponseCode
(
rtnType
);
entity
.
setResponseCode
(
rtnType
);
entity
.
setRtnType
(
rtnType
);
entity
.
setRtnType
(
rtnType
);
String
name
=
CrossInfoCache
.
getName
(
crossId
);
entity
.
setCrossName
(
name
);
crossStrategyResultMapper
.
insert
(
entity
);
crossStrategyResultMapper
.
insert
(
entity
);
}
}
}
}
...
...
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