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
44072d46
Commit
44072d46
authored
Jan 13, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
场景详细评价平均指标
parent
2d8d14d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
GreenwaveHistProviderImpl.java
...net/wanji/opt/service/impl/GreenwaveHistProviderImpl.java
+2
-2
TurnConvertEnum.java
...src/main/java/net/wanji/common/enums/TurnConvertEnum.java
+9
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/GreenwaveHistProviderImpl.java
View file @
44072d46
...
...
@@ -569,10 +569,10 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH
if
(
Objects
.
nonNull
(
scopeList
))
{
//补充
for
(
String
scopeName1
:
scopeList
)
{
if
(!
hasDataScopeList
.
contains
(
scopeName1
)
&&
scopeName1
.
indexOf
(
dirTurnDesc
)
>
0
)
{
if
(!
hasDataScopeList
.
contains
(
scopeName1
)
&&
scopeName1
.
contains
(
dirTurnDesc
)
)
{
CrossLaneDataHistPoExtend
tmp
=
new
CrossLaneDataHistPoExtend
();
tmp
.
setTurnTypeName
(
scopeName1
.
substring
(
dirTurnDesc
.
length
()));
tmp
.
setTurnType
(
TurnConvertEnum
.
getKeyBy
Code
(
tmp
.
getTurnTypeName
()));
tmp
.
setTurnType
(
TurnConvertEnum
.
getKeyBy
Desc
(
tmp
.
getTurnTypeName
()));
value
.
add
(
tmp
);
}
}
...
...
wj-common/src/main/java/net/wanji/common/enums/TurnConvertEnum.java
View file @
44072d46
...
...
@@ -109,4 +109,13 @@ public enum TurnConvertEnum {
return
null
;
}
public
static
Integer
getKeyByDesc
(
String
desc
){
for
(
TurnConvertEnum
e
:
TurnConvertEnum
.
values
())
{
if
(
e
.
desc
.
equals
(
desc
)){
return
e
.
key
;
}
}
return
null
;
}
}
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