Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-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
wj-datacenter-platform
Commits
f716d8f9
Commit
f716d8f9
authored
Jan 20, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 车道周期数据优化
parent
cfffa9c4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
1 deletion
+58
-1
CrossPeriodLaneDTO.java
...ava/net/wanji/datacenter/pojo/dto/CrossPeriodLaneDTO.java
+46
-0
DataProcessServiceImpl.java
...wanji/datacenter/service/impl/DataProcessServiceImpl.java
+12
-1
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/pojo/dto/CrossPeriodLaneDTO.java
View file @
f716d8f9
...
@@ -202,6 +202,52 @@ public class CrossPeriodLaneDTO {
...
@@ -202,6 +202,52 @@ public class CrossPeriodLaneDTO {
notes
=
""
notes
=
""
)
)
private
int
trafficFlowC
;
private
int
trafficFlowC
;
@ApiModelProperty
(
value
=
"流量"
,
notes
=
""
)
private
int
trafficFlow
;
@ApiModelProperty
(
value
=
"速度"
,
notes
=
""
)
private
Double
meanV
;
@ApiModelProperty
(
value
=
"静态最大排队"
,
notes
=
""
)
private
Double
staticQueueLengthMax
;
@ApiModelProperty
(
name
=
"通行能力(辆/某一时段内最大过车数),通行能力=自然流量"
,
notes
=
""
)
private
Integer
laneCapacity
;
@ApiModelProperty
(
name
=
"车道饱和度"
,
notes
=
""
)
private
Double
laneSaturation
;
@ApiModelProperty
(
name
=
"不停车率"
,
notes
=
""
)
private
Double
laneNoStopRate
;
@ApiModelProperty
(
name
=
"一次停车率"
,
notes
=
""
)
private
Double
laneOneStopRate
;
@ApiModelProperty
(
name
=
"二次停车率"
,
notes
=
""
)
private
Double
laneTwoStopRate
;
@ApiModelProperty
(
name
=
"三次停车率"
,
notes
=
""
)
private
Double
laneThreeStopRate
;
}
}
}
}
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/DataProcessServiceImpl.java
View file @
f716d8f9
...
@@ -93,11 +93,13 @@ public class DataProcessServiceImpl implements DataProcessService {
...
@@ -93,11 +93,13 @@ public class DataProcessServiceImpl implements DataProcessService {
// 当前方向车道数量
// 当前方向车道数量
int
size
=
value
.
size
();
int
size
=
value
.
size
();
// 车道级别
// 车道级别
int
i
=
0
;
for
(
CrossPeriodLaneDTO
.
CrossLaneDataRealTimeDTO
crossLaneDataRealTimeDTO
:
value
)
{
for
(
CrossPeriodLaneDTO
.
CrossLaneDataRealTimeDTO
crossLaneDataRealTimeDTO
:
value
)
{
Integer
wjLaneId
=
size
-
dir
+
1
+
10
;
Integer
wjLaneId
=
size
-
i
+
10
;
// 神思车道号与万集车道号镜像
// 神思车道号与万集车道号镜像
String
key
=
crossId
.
concat
(
String
.
valueOf
(
dir
+
1
)).
concat
(
String
.
valueOf
(
wjLaneId
));
String
key
=
crossId
.
concat
(
String
.
valueOf
(
dir
+
1
)).
concat
(
String
.
valueOf
(
wjLaneId
));
LaneInfoPO
laneInfoPO
=
crossIdLaneId2Map
.
get
(
key
);
LaneInfoPO
laneInfoPO
=
crossIdLaneId2Map
.
get
(
key
);
++
i
;
if
(
Objects
.
isNull
(
laneInfoPO
))
{
if
(
Objects
.
isNull
(
laneInfoPO
))
{
continue
;
continue
;
}
}
...
@@ -109,6 +111,15 @@ public class DataProcessServiceImpl implements DataProcessService {
...
@@ -109,6 +111,15 @@ public class DataProcessServiceImpl implements DataProcessService {
crossLaneDataRealTime
.
setStartTime
(
startDate
);
crossLaneDataRealTime
.
setStartTime
(
startDate
);
Integer
batchTime
=
Integer
.
valueOf
(
String
.
valueOf
(
startDate
.
getTime
()).
substring
(
0
,
10
));
Integer
batchTime
=
Integer
.
valueOf
(
String
.
valueOf
(
startDate
.
getTime
()).
substring
(
0
,
10
));
crossLaneDataRealTime
.
setBatchTime
(
batchTime
);
crossLaneDataRealTime
.
setBatchTime
(
batchTime
);
crossLaneDataRealTime
.
setFlow
(
crossLaneDataRealTimeDTO
.
getTrafficFlow
());
crossLaneDataRealTime
.
setSpeed
(
crossLaneDataRealTimeDTO
.
getMeanV
());
crossLaneDataRealTime
.
setQueueLength
(
crossLaneDataRealTimeDTO
.
getStaticQueueLengthMax
());
crossLaneDataRealTime
.
setCapacity
(
crossLaneDataRealTimeDTO
.
getLaneCapacity
());
crossLaneDataRealTime
.
setSturation
(
crossLaneDataRealTimeDTO
.
getLaneSaturation
());
crossLaneDataRealTime
.
setNoStopRate
(
crossLaneDataRealTimeDTO
.
getNoStopRate
());
crossLaneDataRealTime
.
setOneStopRate
(
crossLaneDataRealTimeDTO
.
getOneStopRate
());
crossLaneDataRealTime
.
setTwoStopRate
(
crossLaneDataRealTimeDTO
.
getTwoStopRate
());
crossLaneDataRealTime
.
setThreeStopRate
(
crossLaneDataRealTimeDTO
.
getThreeStopRate
());
insertList
.
add
(
crossLaneDataRealTime
);
insertList
.
add
(
crossLaneDataRealTime
);
}
}
}
}
...
...
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