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
c7771d16
Commit
c7771d16
authored
Apr 02, 2025
by
黄伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史干线预警数据添加干线方向,修正干线策略优化SQL,修正路口车道数据过滤获取
parent
cb2d36ed
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
StatisticsEventTypeCountTimeVO.java
...ava/net/wanji/opt/vo2/StatisticsEventTypeCountTimeVO.java
+2
-0
CrossMapper.xml
...ptimize-service/src/main/resources/mapper/CrossMapper.xml
+1
-0
HoloEventMapper.xml
...ize-service/src/main/resources/mapper/HoloEventMapper.xml
+4
-3
TrunkLineStatusDisMapper.xml
...ce/src/main/resources/mapper/TrunkLineStatusDisMapper.xml
+4
-1
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/vo2/StatisticsEventTypeCountTimeVO.java
View file @
c7771d16
...
...
@@ -31,5 +31,7 @@ public class StatisticsEventTypeCountTimeVO {
private
Integer
durationRate
;
@ApiModelProperty
(
value
=
"发生时间"
)
private
String
startTime
;
@ApiModelProperty
(
value
=
"绿波带方向"
)
private
String
greenDir
;
}
signal-optimize-service/src/main/resources/mapper/CrossMapper.xml
View file @
c7771d16
...
...
@@ -202,6 +202,7 @@
from t_base_lane_info t3
where 1 = 1
and t3.cross_id = #{crossID}
and t3.type = 2
order by t3.dir,t3.turn
</select>
<select
id=
"getCrossTypeInfo"
parameterType=
"map"
...
...
signal-optimize-service/src/main/resources/mapper/HoloEventMapper.xml
View file @
c7771d16
...
...
@@ -356,7 +356,7 @@
<!-- 态势监测-事件告警-历史列表 -->
<select
id=
"selectCrossGreenHistList"
resultType=
"net.wanji.opt.vo2.StatisticsEventTypeCountTimeVO"
>
select t.name, t.id, t.type, t.wkt, t.duration, t.startTime, t.typeDesc
select t.name, t.id, t.type, t.wkt, t.duration, t.startTime, t.typeDesc
,t.greenDir
from
(
select distinct t1.name, t1.id, ifnull(t2.type, '708') type, t1.wkt,
...
...
@@ -366,7 +366,8 @@
when t2.type = '705' then "干线缓行"
when t2.type = '706' then "干线拥堵"
else "干线畅通"
end as typeDesc
end as typeDesc,
case t1.green_dir when '3,7' then 'e2w' when '1,5' then 'n2s' end as greenDir
from t_greenwave_info t1
left join t_event_info t2 on t1.id = t2.green_id
and t2.type in ('705', '706') and t2.dt = curdate()
...
...
@@ -380,7 +381,7 @@
when t2.type = '703' then "路口溢出"
when t2.type = '707' then "路口拥堵"
else "路口畅通"
end as typeDesc
end as typeDesc
,'' as greenDir
from t_base_cross_info t1
left join t_event_info t2 on t1.id = t2.cross_id
and t2.type in ('701', '702', '703', '707') and t2.dt = curdate()
...
...
signal-optimize-service/src/main/resources/mapper/TrunkLineStatusDisMapper.xml
View file @
c7771d16
...
...
@@ -45,7 +45,10 @@
<select
id=
"findPlanTime"
parameterType=
"map"
resultType=
"net.wanji.opt.vo2.TrunkLineOptTimeInfoVO"
>
select DISTINCT DATE_FORMAT(a.control_time,'%H:%i') as optStartTime ,DATE_FORMAT(DATE_ADD(a.control_time, INTERVAL a.duration SECOND),'%H:%i') as optEndTime
from t_strategy_green_opt_hist a where DATE_FORMAT(a.control_time,'%Y-%m-%d') = DATE_FORMAT(#{date},'%Y-%m-%d') and a.response_code = 200
from t_strategy_green_opt_hist a
where DATE_FORMAT(a.control_time,'%Y-%m-%d') = DATE_FORMAT(#{date},'%Y-%m-%d')
and a.response_code = 200
and a.control_method = 1
and a.green_id = #{greenID}
</select>
...
...
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