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
signal
traffic-signal-platform
Commits
628bb3ab
Commit
628bb3ab
authored
Dec 09, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 策略管理策略列表优化
parent
bb6a4b8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
StrategyControlDataEntity.java
...t/wanji/opt/synthesis/pojo/StrategyControlDataEntity.java
+2
-0
StrategyControlServiceImpl.java
...pt/synthesis/service/impl/StrategyControlServiceImpl.java
+4
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/pojo/StrategyControlDataEntity.java
View file @
628bb3ab
...
...
@@ -45,4 +45,6 @@ public class StrategyControlDataEntity extends PageVO {
private
String
crossName
;
@TableField
(
exist
=
false
)
private
String
wkt
;
@TableField
(
exist
=
false
)
private
String
optMethod
;
}
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/service/impl/StrategyControlServiceImpl.java
View file @
628bb3ab
...
...
@@ -264,7 +264,8 @@ public class StrategyControlServiceImpl implements StrategyControlService {
String
crossId
=
baseCrossInfoPO
.
getId
();
strategyControlDataEntity
.
setBizType
(
0
);
strategyControlDataEntity
.
setBizId
(
baseCrossInfoPO
.
getId
());
strategyControlDataEntity
.
setStrategy
(
null
);
// 转化成 0 畅通 1失衡 2拥堵 3溢出 4死锁 5空放 6干线拥堵 7干线缓行 8干线畅通
strategyControlDataEntity
.
setStrategy
(
0
);
strategyControlDataEntity
.
setTime
(
null
);
strategyControlDataEntity
.
setStatus
(
0
);
if
(
map
.
containsKey
(
crossId
))
{
...
...
@@ -286,7 +287,7 @@ public class StrategyControlServiceImpl implements StrategyControlService {
String
greenId
=
String
.
valueOf
(
greenwaveInfoPO
.
getId
());
strategyControlDataEntity
.
setBizType
(
1
);
strategyControlDataEntity
.
setBizId
(
String
.
valueOf
(
greenId
));
strategyControlDataEntity
.
setStrategy
(
null
);
strategyControlDataEntity
.
setStrategy
(
8
);
strategyControlDataEntity
.
setTime
(
null
);
strategyControlDataEntity
.
setStatus
(
0
);
if
(
map
.
containsKey
(
greenId
))
{
...
...
@@ -389,6 +390,7 @@ public class StrategyControlServiceImpl implements StrategyControlService {
result
.
setWkt
(
greenwaveInfoPO
.
getWkt
());
}
}
result
.
setOptMethod
(
StrategyControlEnum
.
getMethod
(
result
.
getStrategy
()));
results
.
add
(
result
);
}
return
results
;
...
...
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