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
c1f3a9f3
Commit
c1f3a9f3
authored
Feb 13, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 策略列表添加返显名称
parent
508fe8ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
StrategyControlServiceImpl.java
...pt/synthesis/service/impl/StrategyControlServiceImpl.java
+4
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/service/impl/StrategyControlServiceImpl.java
View file @
c1f3a9f3
...
...
@@ -211,7 +211,7 @@ public class StrategyControlServiceImpl implements StrategyControlService {
log
.
error
(
"优化策略查询失败:"
,
e
);
JsonViewObject
.
newInstance
().
fail
(
"优化策略查询失败"
);
}
List
<
StrategyControlHistVO
>
sorted
=
results
.
stream
().
sorted
(
Comparator
.
comparing
(
StrategyControlHistVO:
:
getOptTime
).
reversed
()).
collect
(
Collectors
.
toList
());
List
<
StrategyControlHistVO
>
sorted
=
results
.
stream
().
limit
(
3000
).
sorted
(
Comparator
.
comparing
(
StrategyControlHistVO:
:
getOptTime
).
reversed
()).
collect
(
Collectors
.
toList
());
return
JsonViewObject
.
newInstance
().
success
(
sorted
);
}
...
...
@@ -247,7 +247,7 @@ public class StrategyControlServiceImpl implements StrategyControlService {
}
}
queryWrapper
.
orderByDesc
(
StrategyCrossResultEntity:
:
getIssueTime
);
queryWrapper
.
last
(
"limit
3
000"
);
queryWrapper
.
last
(
"limit
4
000"
);
List
<
StrategyCrossResultEntity
>
resultEntities
=
strategyCrossResultMapper
.
selectList
(
queryWrapper
);
if
(!
CollectionUtils
.
isEmpty
(
resultEntities
))
{
for
(
StrategyCrossResultEntity
resultEntity
:
resultEntities
)
{
...
...
@@ -723,6 +723,7 @@ public class StrategyControlServiceImpl implements StrategyControlService {
executePlan
.
setEndTime
(
planInfoEntity
.
getEndTime
());
executePlan
.
setStatus
(
planInfoEntity
.
getStatus
());
executePlan
.
setType
(
planInfoEntity
.
getType
());
executePlan
.
setName
(
planInfoEntity
.
getName
());
String
planDetailsStr
=
planInfoEntity
.
getPlanDetails
();
List
<
StrategyControlDetailList
.
ExecutePlan
.
PlanDetail
>
planDetails
=
instance
.
readValue
(
planDetailsStr
,
new
TypeReference
<
List
<
StrategyControlDetailList
.
ExecutePlan
.
PlanDetail
>>()
{
});
...
...
@@ -739,6 +740,7 @@ public class StrategyControlServiceImpl implements StrategyControlService {
StrategyControlDetailList
.
DailyPlan
dailyPlan
=
new
StrategyControlDetailList
.
DailyPlan
();
dailyPlan
.
setCrossId
(
dailyPlanInfoEntity
.
getCrossId
());
dailyPlan
.
setDailyPlanId
(
dailyPlanInfoEntity
.
getDailyPlanId
());
dailyPlan
.
setName
(
dailyPlanInfoEntity
.
getName
());
String
dailyPlanDetailsStr
=
dailyPlanInfoEntity
.
getDailyPlanDetails
();
List
<
StrategyControlDetailList
.
DailyPlan
.
DailyPlanDetail
>
dailyPlanDetails
=
instance
.
readValue
(
dailyPlanDetailsStr
,
new
TypeReference
<
List
<
StrategyControlDetailList
.
DailyPlan
.
DailyPlanDetail
>>()
{
});
...
...
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