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
1065f08c
Commit
1065f08c
authored
May 06, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 济南测试平台-态势检测-重点路口检测
parent
76baa26e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
103 additions
and
28 deletions
+103
-28
TrendController.java
...c/main/java/net/wanji/opt/controller/TrendController.java
+12
-8
TrendService.java
...ice/src/main/java/net/wanji/opt/service/TrendService.java
+2
-0
TrendServiceImpl.java
...ain/java/net/wanji/opt/service/impl/TrendServiceImpl.java
+63
-19
HotspotCrossVO.java
...ervice/src/main/java/net/wanji/opt/vo/HotspotCrossVO.java
+25
-0
CrossDataRealtimeMapper.xml
...bus/src/main/resources/mapper/CrossDataRealtimeMapper.xml
+1
-1
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/controller/TrendController.java
View file @
1065f08c
...
...
@@ -13,10 +13,7 @@ import net.wanji.opt.dto.trend.EventAlarmDTO;
import
net.wanji.opt.dto.trend.GreenwaveListDTO
;
import
net.wanji.opt.service.impl.TrendServiceImpl
;
import
net.wanji.opt.vo.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.ws.rs.core.MediaType
;
import
java.text.ParseException
;
...
...
@@ -173,7 +170,7 @@ public class TrendController {
return
jsonViewObject
.
success
(
eventAlarmVOList
);
}
@ApiOperation
(
value
=
"数量实时推送"
,
notes
=
"数量实时推送"
,
response
=
JsonViewObject
.
class
,
@ApiOperation
(
value
=
"数量实时推送"
,
notes
=
"数量实时推送"
,
response
=
JsonViewObject
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/countRealTime"
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
...
...
@@ -186,7 +183,7 @@ public class TrendController {
return
JsonViewObject
.
newInstance
().
success
(
countRealTimeVO
);
}
@ApiOperation
(
value
=
"表格分时段查询"
,
notes
=
"表格分时段查询"
,
response
=
JsonViewObject
.
class
,
@ApiOperation
(
value
=
"表格分时段查询"
,
notes
=
"表格分时段查询"
,
response
=
JsonViewObject
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/tableQuery"
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
...
...
@@ -198,7 +195,7 @@ public class TrendController {
return
JsonViewObject
.
newInstance
().
success
(
tableQueryVO
);
}
@ApiOperation
(
value
=
"表格实时推送"
,
notes
=
"表格实时推送"
,
response
=
JsonViewObject
.
class
,
@ApiOperation
(
value
=
"表格实时推送"
,
notes
=
"表格实时推送"
,
response
=
JsonViewObject
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/tableRealTime"
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
...
...
@@ -210,7 +207,7 @@ public class TrendController {
return
JsonViewObject
.
newInstance
().
success
(
tableRealTimeVO
);
}
@ApiOperation
(
value
=
"优化类型"
,
notes
=
"优化类型"
,
response
=
JsonViewObject
.
class
,
@ApiOperation
(
value
=
"优化类型"
,
notes
=
"优化类型"
,
response
=
JsonViewObject
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/optType"
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
...
...
@@ -221,4 +218,11 @@ public class TrendController {
OptTypeVO
optTypeVO
=
trendService
.
optType
(
crossIdBO
);
return
JsonViewObject
.
newInstance
().
success
(
optTypeVO
);
}
@ApiOperation
(
value
=
"重点路口监测"
,
notes
=
"重点路口监测"
,
response
=
JsonViewObject
.
class
)
@GetMapping
(
value
=
"/hotspotCross"
)
public
JsonViewObject
hotspotCross
()
throws
Exception
{
List
<
HotspotCrossVO
>
hotspotCrossVOS
=
trendService
.
hotspotCross
();
return
JsonViewObject
.
newInstance
().
success
(
hotspotCrossVOS
);
}
}
\ No newline at end of file
signal-optimize-service/src/main/java/net/wanji/opt/service/TrendService.java
View file @
1065f08c
...
...
@@ -46,4 +46,6 @@ public interface TrendService {
TableQueryVO
tableRealTime
(
CrossIdAndIsFirstBO
crossIdAndIsFirstBO
)
throws
Exception
;
OptTypeVO
optType
(
CrossIdBO
crossIdBO
);
List
<
HotspotCrossVO
>
hotspotCross
()
throws
Exception
;
}
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/TrendServiceImpl.java
View file @
1065f08c
This diff is collapsed.
Click to expand it.
signal-optimize-service/src/main/java/net/wanji/opt/vo/HotspotCrossVO.java
0 → 100644
View file @
1065f08c
package
net
.
wanji
.
opt
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
import
java.util.List
;
/**
* @author duanruiming
* @date 2024/05/06 10:58
*/
@NoArgsConstructor
@Data
@ApiModel
(
value
=
"重点路口监测实体"
,
description
=
"重点路口监测实体"
)
public
class
HotspotCrossVO
{
private
Date
timeStamp
;
private
List
<
DetailVO
>
detailList
;
@Data
public
static
class
DetailVO
{
private
Integer
dir
;
private
Double
queueLength
;
}
}
wj-databus/src/main/resources/mapper/CrossDataRealtimeMapper.xml
View file @
1065f08c
...
...
@@ -88,7 +88,7 @@
and t1.type = #{type}
</if>
<if
test=
"status == null"
>
and t1.status in (0, 1, 2, 3)
and t1.status in (0, 1, 2, 3
, 5
)
</if>
and t2.is_signal = 1
</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