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
ac480e7f
Commit
ac480e7f
authored
Jan 21, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 策略执行记录优化-异常逻辑查询
parent
2d144474
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
StrategyControlServiceImpl.java
...pt/synthesis/service/impl/StrategyControlServiceImpl.java
+10
-4
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/service/impl/StrategyControlServiceImpl.java
View file @
ac480e7f
...
@@ -232,8 +232,11 @@ public class StrategyControlServiceImpl implements StrategyControlService {
...
@@ -232,8 +232,11 @@ public class StrategyControlServiceImpl implements StrategyControlService {
queryWrapper
.
ge
(
StrategyCrossResultEntity:
:
getIssueTime
,
midnight
);
queryWrapper
.
ge
(
StrategyCrossResultEntity:
:
getIssueTime
,
midnight
);
}
}
if
(
Objects
.
nonNull
(
resultType
))
{
if
(
Objects
.
nonNull
(
resultType
))
{
Integer
resCode
=
Objects
.
equals
(
1
,
resultType
)
?
200
:
500
;
if
(
Objects
.
equals
(
1
,
resultType
))
{
queryWrapper
.
ge
(
StrategyCrossResultEntity:
:
getResponseCode
,
resCode
);
queryWrapper
.
eq
(
StrategyCrossResultEntity:
:
getResponseCode
,
200
);
}
else
{
queryWrapper
.
ne
(
StrategyCrossResultEntity:
:
getResponseCode
,
200
);
}
}
}
List
<
StrategyCrossResultEntity
>
resultEntities
=
strategyCrossResultMapper
.
selectList
(
queryWrapper
);
List
<
StrategyCrossResultEntity
>
resultEntities
=
strategyCrossResultMapper
.
selectList
(
queryWrapper
);
if
(!
CollectionUtils
.
isEmpty
(
resultEntities
))
{
if
(!
CollectionUtils
.
isEmpty
(
resultEntities
))
{
...
@@ -267,8 +270,11 @@ public class StrategyControlServiceImpl implements StrategyControlService {
...
@@ -267,8 +270,11 @@ public class StrategyControlServiceImpl implements StrategyControlService {
queryWrapper
.
ge
(
StrategyGreenOptHistEntity:
:
getControlTime
,
midnight
);
queryWrapper
.
ge
(
StrategyGreenOptHistEntity:
:
getControlTime
,
midnight
);
}
}
if
(
Objects
.
nonNull
(
resultType
))
{
if
(
Objects
.
nonNull
(
resultType
))
{
Integer
controlMethod
=
Objects
.
equals
(
1
,
resultType
)
?
1
:
0
;
if
(
Objects
.
equals
(
1
,
resultType
))
{
queryWrapper
.
ge
(
StrategyGreenOptHistEntity:
:
getControlMethod
,
controlMethod
);
queryWrapper
.
eq
(
StrategyGreenOptHistEntity:
:
getResponseCode
,
200
);
}
else
{
queryWrapper
.
ne
(
StrategyGreenOptHistEntity:
:
getResponseCode
,
200
);
}
}
}
List
<
StrategyGreenOptHistEntity
>
entities
=
strategyGreenOptHistMapper
.
selectList
(
queryWrapper
);
List
<
StrategyGreenOptHistEntity
>
entities
=
strategyGreenOptHistMapper
.
selectList
(
queryWrapper
);
if
(!
CollectionUtils
.
isEmpty
(
entities
))
{
if
(!
CollectionUtils
.
isEmpty
(
entities
))
{
...
...
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