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
71a15caa
Commit
71a15caa
authored
May 08, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 态势监测-雷达图过滤展示bug
parent
f8665050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
TrendServiceV2Impl.java
...va/net/wanji/opt/servicev2/implv2/TrendServiceV2Impl.java
+4
-4
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/servicev2/implv2/TrendServiceV2Impl.java
View file @
71a15caa
...
...
@@ -360,15 +360,15 @@ public class TrendServiceV2Impl implements TrendServiceV2 {
result
.
setCountRate
((
int
)
(
Math
.
round
(
countRate
*
100
)
));
result
.
setDurationRate
((
int
)
(
Math
.
round
(
durationRate
*
100
)
));
String
greenDir
=
result
.
getGreenDir
();
StringBuilder
stringBuilder
=
new
StringBuilder
();
if
(!
StringUtils
.
isEmpty
(
greenDir
))
{
StringBuilder
stringBuilder
=
new
StringBuilder
();
for
(
String
dir
:
greenDir
.
split
(
","
))
{
stringBuilder
.
append
(
GreenBeltDirEnum
.
getCode
(
Integer
.
valueOf
(
dir
))).
append
(
","
);
}
int
length
=
stringBuilder
.
length
();
String
substring
=
stringBuilder
.
substring
(
0
,
length
-
1
);
result
.
setGreenDir
(
substring
);
}
int
length
=
stringBuilder
.
length
();
String
substring
=
stringBuilder
.
substring
(
0
,
length
-
1
);
result
.
setGreenDir
(
substring
);
}
}
});
...
...
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