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
jinan
traffic-signal-platform
Commits
7178ce17
Commit
7178ce17
authored
Mar 19, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
示范区区域查询
parent
61381f26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
EventInfoController.java
...anji/opt/controllerv2/evaluation/EventInfoController.java
+3
-3
BaseAreaInfoServiceImpl.java
...servicev2/judgeanalysis/impl/BaseAreaInfoServiceImpl.java
+11
-11
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/controllerv2/evaluation/EventInfoController.java
View file @
7178ce17
...
...
@@ -82,9 +82,9 @@ public class EventInfoController extends AbstractRestServerImpl<EventInfo> imple
@ApiOperation
(
value
=
"交通事件信息-根据开始以及结束时间查询交通事件信息"
,
notes
=
"获取所有交通事件信息记录"
,
response
=
EventInfo
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
,
hidden
=
false
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"startTime"
,
value
=
"开始时间"
,
required
=
true
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"endTime"
,
value
=
"结束时间"
,
required
=
true
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"crossId"
,
value
=
"路口id"
,
required
=
true
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"startTime"
,
value
=
"开始时间"
,
required
=
true
,
dataType
=
"String"
,
defaultValue
=
""
),
@ApiImplicitParam
(
name
=
"endTime"
,
value
=
"结束时间"
,
required
=
true
,
dataType
=
"String"
,
defaultValue
=
""
),
@ApiImplicitParam
(
name
=
"crossId"
,
value
=
"路口id"
,
required
=
true
,
dataType
=
"String"
,
defaultValue
=
""
),
})
@GetMapping
(
value
=
"getListByStartAndEnd"
)
public
JsonViewObject
getListByStartAndEnd
(
String
startTime
,
String
endTime
,
String
crossId
){
...
...
signal-optimize-service/src/main/java/net/wanji/opt/servicev2/judgeanalysis/impl/BaseAreaInfoServiceImpl.java
View file @
7178ce17
...
...
@@ -12,7 +12,9 @@ import net.wanji.opt.servicev2.judgeanalysis.BaseAreaInfoService;
import
org.apache.dubbo.config.annotation.Service
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Stream
;
/**
...
...
@@ -38,16 +40,14 @@ public class BaseAreaInfoServiceImpl implements BaseAreaInfoService {
* @return
*/
public
List
<
BaseAreaInfoPO
>
selectByType
(
Integer
type
){
List
<
BaseAreaInfoPO
>
list
=
baseAreaInfoMapper
.
selectByType
(
type
);
if
(
list
.
size
()
>
0
){
list
.
stream
().
forEach
(
item
->{
List
<
BaseAreaInfoPO
>
areaInfoPOList
=
baseAreaInfoMapper
.
selectByParentCode
(
item
.
getId
());
if
(
areaInfoPOList
.
size
()
>
0
){
item
.
setAreaInfoPOList
(
areaInfoPOList
);
}
});
}
return
list
;
//指定查询一期示范区
BaseAreaInfoPO
parent
=
baseAreaInfoMapper
.
selectById
(
12
);
List
<
BaseAreaInfoPO
>
child
=
baseAreaInfoMapper
.
selectByParentCode
(
parent
.
getId
());
List
<
BaseAreaInfoPO
>
retList
=
new
ArrayList
<>();
retList
.
add
(
parent
);
retList
.
addAll
(
child
);
return
retList
;
}
}
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