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
e6d0eb2a
Commit
e6d0eb2a
authored
Apr 22, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 拥堵查询添加批次事件和拥堵指数
parent
998f4989
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
AbnormalCrossListVO.java
...c/main/java/net/wanji/databus/vo/AbnormalCrossListVO.java
+9
-0
CrossDataRealtimeMapper.xml
...bus/src/main/resources/mapper/CrossDataRealtimeMapper.xml
+2
-1
No files found.
wj-databus/src/main/java/net/wanji/databus/vo/AbnormalCrossListVO.java
View file @
e6d0eb2a
...
@@ -50,4 +50,13 @@ public class AbnormalCrossListVO {
...
@@ -50,4 +50,13 @@ public class AbnormalCrossListVO {
private
Integer
isSpillover
;
private
Integer
isSpillover
;
@ApiModelProperty
(
value
=
"是否拥堵:0否;1是"
)
@ApiModelProperty
(
value
=
"是否拥堵:0否;1是"
)
private
Integer
isCongestion
;
private
Integer
isCongestion
;
@ApiModelProperty
(
value
=
"拥堵指数"
)
private
Double
congestionIndex
;
@ApiModelProperty
(
value
=
"同比"
,
notes
=
"同比增长率= (本期数 - 同期数) / 同期数 × 100%;同比:取上一周同一时段数据"
)
private
Double
lastWeekIndex
;
@ApiModelProperty
(
value
=
"环比"
,
notes
=
"增长率= (本期数 - 上期数) / 上期数 × 100%;环比:取上一时段数据"
)
private
Double
lastPeriodIndex
;
private
Integer
batchTime
;
@ApiModelProperty
(
value
=
" 0-偶发性 1-常发性"
,
notes
=
"一个月内超过三次"
)
private
int
frequent
;
}
}
wj-databus/src/main/resources/mapper/CrossDataRealtimeMapper.xml
View file @
e6d0eb2a
...
@@ -73,7 +73,8 @@
...
@@ -73,7 +73,8 @@
<select
id=
"selectAbnormalCross"
resultType=
"net.wanji.databus.vo.AbnormalCrossListVO"
>
<select
id=
"selectAbnormalCross"
resultType=
"net.wanji.databus.vo.AbnormalCrossListVO"
>
select
select
t2.id, t2.name, t2.is_signal, t1.unbalance_dirs, t1.congestion_dirs, t1.spillover_dirs, t1.status as realtimeStatus,
t2.id, t2.name, t2.is_signal, t1.unbalance_dirs, t1.congestion_dirs, t1.spillover_dirs, t1.status as realtimeStatus,
t1.start_time, t1.duration, t2.location as locationStr, t1.is_unbalance, t1.is_spillover, t1.is_congestion
t1.start_time, t1.duration, t2.location as locationStr, t1.is_unbalance, t1.is_spillover, t1.is_congestion,
t1.congestion_index, t1.batch_time
from t_cross_data_realtime t1 JOIN t_base_cross_info t2
from t_cross_data_realtime t1 JOIN t_base_cross_info t2
on t1.cross_id = t2.id
on t1.cross_id = t2.id
<where>
<where>
...
...
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