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
aad0a4ad
Commit
aad0a4ad
authored
Feb 06, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] AI路口列表查询优化
parent
16d28797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
StrategyCrossResultMapper.xml
...e/src/main/resources/mapper/StrategyCrossResultMapper.xml
+3
-2
No files found.
signal-optimize-service/src/main/resources/mapper/StrategyCrossResultMapper.xml
View file @
aad0a4ad
...
@@ -9,9 +9,10 @@
...
@@ -9,9 +9,10 @@
<select
id=
"selectAICrossList"
resultType=
"net.wanji.opt.synthesis.pojo.StrategyCrossResultEntity"
>
<select
id=
"selectAICrossList"
resultType=
"net.wanji.opt.synthesis.pojo.StrategyCrossResultEntity"
>
select t1.id as crossId, t1.name as crossName, t2.issue_time, t2.current_algo, t2.response_code, t1.location as responseContent from
select t1.id as crossId, t1.name as crossName, t2.issue_time, t2.current_algo, t2.response_code, t1.location as responseContent from
(select id, name, location from t_base_cross_info where is_signal = 1) t1
(select id, name, location from t_base_cross_info where is_signal = 1) t1
left join (select cross_id, max(issue_time) issue_time, current_algo, response_code from t_strategy_cross_result group by cross_id) t2
left join (select cross_id, max(issue_time) issue_time, current_algo,
response_code from t_strategy_cross_result where issue_time > CURDATE() group by cross_id) t2
on t1.id = t2.cross_id
on t1.id = t2.cross_id
and t2.issue_time >
DATE_FORMAT(now(),'%Y-%m-%d 00:00:00'
)
and t2.issue_time >
CURDATE(
)
order by t2.issue_time desc
order by t2.issue_time desc
<!-- select t1.id as cross_id, t1.name as cross_name, t2.current_algo, t2.issue_time-->
<!-- select t1.id as cross_id, t1.name as cross_name, t2.current_algo, t2.issue_time-->
<!-- from t_base_cross_info t1 left join-->
<!-- from t_base_cross_info t1 left join-->
...
...
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