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
2d3f20d6
Commit
2d3f20d6
authored
Jan 16, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
方向处理
parent
17ff6a00
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
HoloEventMapper.java
...c/main/java/net/wanji/opt/dao/mapper/HoloEventMapper.java
+0
-3
GreenwaveHistProviderImpl.java
...net/wanji/opt/service/impl/GreenwaveHistProviderImpl.java
+5
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/dao/mapper/HoloEventMapper.java
View file @
2d3f20d6
...
...
@@ -45,9 +45,6 @@ public interface HoloEventMapper extends BaseMapper<HoloEventInfoPO> {
/**
* 查看路口为结束的报警状态
* @param realtimeType
* @param eventType
* @param name
* @return
*/
List
<
EventAlarmInfo
>
findNotFinishAlarmInfo
();
...
...
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/GreenwaveHistProviderImpl.java
View file @
2d3f20d6
...
...
@@ -554,6 +554,8 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH
bo
.
setScope
(
objectType
);
List
<
String
>
scopeList
=
mainlineEvaluateService
.
bottomMenu
(
bo
);
TBaseCrossInfo
tBaseCrossInfo
=
baseCrossInfoMapper
.
selectByPrimaryKey
(
crossId
);
String
crossName
=
tBaseCrossInfo
.
getName
();
for
(
Map
.
Entry
<
String
,
List
<
CrossLaneDataHistPoExtend
>>
entry
:
groupByDir
.
entrySet
())
{
String
key
=
entry
.
getKey
();
...
...
@@ -566,7 +568,6 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH
dirName
=
BaseEnum
.
SignalDirectionEnum
.
getNameByCode
(
Integer
.
valueOf
(
dirType
));
}
String
dirTurnDesc
=
dirName
+
"进口"
;
Map
<
String
,
Object
>
mapList
=
new
HashMap
<>();
List
<
CrossLaneDataHistPoExtend
>
value
=
entry
.
getValue
().
stream
().
sorted
(
Comparator
.
comparing
(
o
->
o
.
getTurnType
())).
collect
(
Collectors
.
toList
());
...
...
@@ -608,7 +609,7 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH
tmp
.
setCrossId
(
cid
);
tmp
.
setDirType
(
BaseEnum
.
SignalDirectionEnum
.
getCodeByName
(
scopeName1
.
substring
(
0
,
scopeName1
.
indexOf
(
"进口"
))));
tmp
.
setDirTypeName
(
dirTurnDesc
);
tmp
.
setTurnTypeName
(
scopeName1
.
substring
(
dirTurnDesc
.
length
()));
tmp
.
setTurnTypeName
(
scopeName1
.
substring
(
scopeName1
.
indexOf
(
dirTurnDesc
)
+
dirTurnDesc
.
length
()));
tmp
.
setTurnType
(
TurnConvertEnum
.
getKeyByDesc
(
tmp
.
getTurnTypeName
()));
hasDataScopeList
.
add
(
tmp
.
getDirTypeName
()
+
tmp
.
getTurnTypeName
());
//利用正则表达式取车道号
...
...
@@ -635,6 +636,7 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH
mapList
.
put
(
"scopeCode"
,
key
);
mapList
.
put
(
"dirName"
,
dirTurnDesc
);
mapList
.
put
(
"scopeName"
,
crossName
);
mapList
.
put
(
"dirType"
,
BaseEnum
.
SignalDirectionEnum
.
getCodeByName
(
dirTurnDesc
.
substring
(
0
,
dirTurnDesc
.
indexOf
(
"进口"
))));
mapList
.
put
(
"list"
,
value
);
allList
.
add
(
mapList
);
...
...
@@ -679,6 +681,7 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH
mapList
.
put
(
"scopeCode"
,
null
);
mapList
.
put
(
"isLost"
,
true
);
mapList
.
put
(
"dirName"
,
dirDesc
+
"进口"
);
mapList
.
put
(
"scopeName"
,
crossName
);
mapList
.
put
(
"dirType"
,
tmpEntry
.
getKey
());
mapList
.
put
(
"list"
,
tmpEntry
.
getValue
());
allList
.
add
(
mapList
);
...
...
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