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
666fadc9
Commit
666fadc9
authored
May 16, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 济南测试平台-添加行人流量和总流量
parent
dcc89789
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
TrendServiceImpl.java
...ain/java/net/wanji/opt/service/impl/TrendServiceImpl.java
+9
-0
TableQueryVO.java
...-service/src/main/java/net/wanji/opt/vo/TableQueryVO.java
+4
-0
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/TrendServiceImpl.java
View file @
666fadc9
...
...
@@ -7,6 +7,7 @@ import cn.hutool.core.util.ObjectUtil;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
lombok.extern.slf4j.Slf4j
;
import
net.wanji.common.enums.*
;
import
net.wanji.common.framework.Constants
;
import
net.wanji.common.utils.tool.CrossUtil
;
import
net.wanji.common.utils.tool.StringUtils
;
import
net.wanji.databus.bo.CrossIdBO
;
...
...
@@ -1338,9 +1339,14 @@ public class TrendServiceImpl implements TrendService {
LambdaQueryWrapper
<
CrossBaseLaneInfoPO
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
CrossBaseLaneInfoPO:
:
getCrossId
,
crossId
);
List
<
CrossBaseLaneInfoPO
>
crossBaseLaneInfoPOS
=
crossBaseLaneInfoMapper
.
selectList
(
queryWrapper
);
int
pedFlow
=
0
;
for
(
CrossLaneDataHistPOExt
po
:
poExtList
)
{
TableQueryVO
.
CycleDataElement
vo
=
new
TableQueryVO
.
CycleDataElement
();
if
(
po
.
getId
().
contains
(
crossId
.
concat
(
Constants
.
SystemParam
.
SEPARATOR_MINUS
)))
{
pedFlow
+=
po
.
getFlow
();
}
String
laneId
=
po
.
getId
();
Integer
batchTime
=
po
.
getBatchTime
();
// 将10位时间戳转换为毫秒
...
...
@@ -1382,6 +1388,9 @@ public class TrendServiceImpl implements TrendService {
vo
.
setTrafficFlowC
(
po
.
getTrafficFlowC
());
vo
.
setNonMotorFlow
(
po
.
getNonMotorFlow
());
vo
.
setV85
(
po
.
getV85
());
vo
.
setPedFlow
(
pedFlow
);
vo
.
setAllFlow
(
pedFlow
+
pedFlow
+
po
.
getNonMotorFlow
());
Integer
turn
=
null
;
for
(
CrossBaseLaneInfoPO
crossBaseLaneInfoPO
:
crossBaseLaneInfoPOS
)
{
if
(
StringUtils
.
equalsIgnoreCase
(
laneId
,
crossBaseLaneInfoPO
.
getId
()))
{
...
...
signal-optimize-service/src/main/java/net/wanji/opt/vo/TableQueryVO.java
View file @
666fadc9
...
...
@@ -96,5 +96,9 @@ public class TableQueryVO {
private
double
v85
;
@ApiModelProperty
(
value
=
"非机动车流量"
)
private
int
nonMotorFlow
;
@ApiModelProperty
(
value
=
"行人流量"
)
private
int
pedFlow
;
@ApiModelProperty
(
value
=
"总流量"
)
private
int
allFlow
;
}
}
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