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
jinan
traffic-signal-platform
Commits
716b430a
Commit
716b430a
authored
Apr 10, 2025
by
黄伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正干线状态SQL
parent
be46acc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
TrunkLineMapper.xml
...ize-service/src/main/resources/mapper/TrunkLineMapper.xml
+2
-2
No files found.
signal-optimize-service/src/main/resources/mapper/TrunkLineMapper.xml
View file @
716b430a
...
...
@@ -22,7 +22,7 @@
end as status_cn
from
t_event_info a
where a.green_id =
1
where a.green_id =
#{greenID}
and a.type in (705,706)
<if
test=
"time == '' "
>
and a.end_time is null
...
...
@@ -40,7 +40,7 @@
<select
id=
"getTrunkLineRealTimeAlarm"
parameterType=
"map"
resultMap=
"tlRealTimeAlarmsResultMap"
>
select a.type , a.start_time as startTime , SUBSTR(a.dir, 2, length(a.dir)-2) as dir
from t_event_info a
where a.start_time = (select MAX(start_time) from t_event_info where
cross
_id = #{greenID}
where a.start_time = (select MAX(start_time) from t_event_info where
green
_id = #{greenID}
and start_time
<![CDATA[ <= ]]>
DATE_FORMAT(#{time}, '%Y-%m-%d %H:%i:%s') and start_time >= DATE_FORMAT(DATE_SUB(#{time},INTERVAL 5 MINUTE), '%Y-%m-%d %H:%i:%s')
and dt = DATE_FORMAT(#{time}, '%Y%m%d') )
and a.type in (705, 706)
...
...
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