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
e0085a02
Commit
e0085a02
authored
Feb 25, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
随机mock数据
parent
22ab2ed7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
GreenwaveHistProviderImpl.java
...net/wanji/opt/service/impl/GreenwaveHistProviderImpl.java
+8
-3
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/GreenwaveHistProviderImpl.java
View file @
e0085a02
...
...
@@ -477,8 +477,10 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH
}
else
if
(
Objects
.
equals
(
3
,
objectType
))
{
value
=
value
.
stream
().
sorted
(
Comparator
.
comparing
(
o
->
o
.
getLaneNo
())).
collect
(
Collectors
.
toList
());
}
this
.
mockData
(
value
);
if
(
Objects
.
equals
(
3
,
objectType
)){
//车道指标mock数据
this
.
mockData
(
value
);
}
mapList
.
put
(
"scopeCode"
,
key
);
mapList
.
put
(
"dirType"
,
dirType
);
...
...
@@ -519,7 +521,10 @@ public class GreenwaveHistProviderImpl extends BaseDubboInterfaceImpl<GreenwaveH
po
.
setTimeAxis
(
time
);
tmpList
.
add
(
po
);
}
this
.
mockData
(
tmpList
);
if
(
Objects
.
equals
(
3
,
objectType
)){
//车道指标mock数据
this
.
mockData
(
tmpList
);
}
mapList
.
put
(
"list"
,
tmpList
);
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