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
7031ffed
Commit
7031ffed
authored
Mar 11, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 诊断优化,相邻路口增加是否信控路口筛选
parent
35716e72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
DiagnoServiceImpl.java
...in/java/net/wanji/opt/service/impl/DiagnoServiceImpl.java
+2
-2
RidInfoMapper.xml
wj-databus/src/main/resources/mapper/RidInfoMapper.xml
+5
-4
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/DiagnoServiceImpl.java
View file @
7031ffed
...
@@ -125,9 +125,9 @@ public class DiagnoServiceImpl implements DiagnoService {
...
@@ -125,9 +125,9 @@ public class DiagnoServiceImpl implements DiagnoService {
String
crossId
=
crossIdDTO
.
getCrossId
();
String
crossId
=
crossIdDTO
.
getCrossId
();
List
<
Integer
>
inDirs
=
crossDirInfoMapper
.
selectInDirsByCrossId
(
crossId
);
List
<
Integer
>
inDirs
=
crossDirInfoMapper
.
selectInDirsByCrossId
(
crossId
);
for
(
Integer
inDir
:
inDirs
)
{
for
(
Integer
inDir
:
inDirs
)
{
CrossIdAndLocationVO
crossIdAndLocationVO
=
new
CrossIdAndLocationVO
();
RidInfoEntity
ridInfo
=
ridInfoMapper
.
selectByEndInDir
(
crossId
,
inDir
);
RidInfoEntity
ridInfo
=
ridInfoMapper
.
selectByEndInDir
(
crossId
,
inDir
);
if
(
ridInfo
!=
null
)
{
if
(
ridInfo
!=
null
)
{
CrossIdAndLocationVO
crossIdAndLocationVO
=
new
CrossIdAndLocationVO
();
// 关联路口坐标
// 关联路口坐标
String
startCrossId
=
ridInfo
.
getStartCrossId
();
String
startCrossId
=
ridInfo
.
getStartCrossId
();
crossIdAndLocationVO
.
setId
(
startCrossId
);
crossIdAndLocationVO
.
setId
(
startCrossId
);
...
@@ -149,8 +149,8 @@ public class DiagnoServiceImpl implements DiagnoService {
...
@@ -149,8 +149,8 @@ public class DiagnoServiceImpl implements DiagnoService {
throw
new
RuntimeException
(
"没有该路口实时数据"
);
throw
new
RuntimeException
(
"没有该路口实时数据"
);
}
}
crossIdAndLocationVO
.
setRealtimeStatus
(
crossDataRealtimePO
.
getStatus
());
crossIdAndLocationVO
.
setRealtimeStatus
(
crossDataRealtimePO
.
getStatus
());
crossIdAndLocationVOList
.
add
(
crossIdAndLocationVO
);
}
}
crossIdAndLocationVOList
.
add
(
crossIdAndLocationVO
);
}
}
return
crossIdAndLocationVOList
;
return
crossIdAndLocationVOList
;
}
}
...
...
wj-databus/src/main/resources/mapper/RidInfoMapper.xml
View file @
7031ffed
...
@@ -70,9 +70,10 @@
...
@@ -70,9 +70,10 @@
</select>
</select>
<select
id=
"selectByEndInDir"
resultType=
"net.wanji.databus.dao.entity.RidInfoEntity"
>
<select
id=
"selectByEndInDir"
resultType=
"net.wanji.databus.dao.entity.RidInfoEntity"
>
SELECT id,name,road_id,road_name,road_dir_id,start_cross_id,end_cross_id,out_dir,in_dir,start_angle,end_angle,
SELECT t1.id,t1.name,t1.road_id,t1.road_name,t1.road_dir_id,t1.start_cross_id,t1.end_cross_id,t1.out_dir,
direction,sort,trend,level,area_code,length,width,is_oneway,type,wkt,sc_id,sc_name,sc_sort,gmt_create,gmt_modified
t1.in_dir,t1.start_angle,t1.end_angle,t1.direction,t1.sort,t1.trend,t1.level,t1.area_code,t1.length,
FROM t_base_rid_info
t1.width,t1.is_oneway,t1.type,t1.wkt,t1.sc_id,t1.sc_name,t1.sc_sort,t1.gmt_create,t1.gmt_modified
WHERE end_cross_id = #{endCrossId} and in_dir = #{spilloverDirInt}
FROM t_base_rid_info t1 JOIN t_base_cross_info t2 ON t1.start_cross_id = t2.id
WHERE t1.end_cross_id = #{endCrossId} and t1.in_dir = #{spilloverDirInt} and t2.is_signal = 1
</select>
</select>
</mapper>
</mapper>
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