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
727eb89c
Commit
727eb89c
authored
May 19, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 快速特勤,批量返回路口进出列表
parent
3eb761c2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
20 deletions
+62
-20
CrossIdBO.java
...rol-service/src/main/java/net/wanji/web/bo/CrossIdBO.java
+3
-3
SpecialServiceController.java
...va/net/wanji/web/controller/SpecialServiceController.java
+8
-8
SpecialServiceService.java
...ain/java/net/wanji/web/service/SpecialServiceService.java
+2
-2
SpecialServiceServiceImpl.java
...net/wanji/web/service/impl/SpecialServiceServiceImpl.java
+31
-7
SpecialDirListVO.java
...ava/net/wanji/web/vo/specialService/SpecialDirListVO.java
+18
-0
No files found.
signal-control-service/src/main/java/net/wanji/web/
vo/specialService/CrossIdV
O.java
→
signal-control-service/src/main/java/net/wanji/web/
bo/CrossIdB
O.java
View file @
727eb89c
package
net
.
wanji
.
web
.
vo
.
specialService
;
package
net
.
wanji
.
web
.
bo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -9,8 +9,8 @@ import lombok.Data;
...
@@ -9,8 +9,8 @@ import lombok.Data;
* @date 2022/11/9 17:21
* @date 2022/11/9 17:21
*/
*/
@Data
@Data
@ApiModel
(
value
=
"CrossId
V
O"
)
@ApiModel
(
value
=
"CrossId
B
O"
)
public
class
CrossId
V
O
{
public
class
CrossId
B
O
{
@ApiModelProperty
(
value
=
"路口ID"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"路口ID"
,
notes
=
""
)
private
String
crossId
;
private
String
crossId
;
}
}
signal-control-service/src/main/java/net/wanji/web/controller/SpecialServiceController.java
View file @
727eb89c
...
@@ -116,23 +116,23 @@ public class SpecialServiceController {
...
@@ -116,23 +116,23 @@ public class SpecialServiceController {
}
}
@AspectLog
(
description
=
"获取路口驶入方向列表"
,
operationType
=
BaseEnum
.
OperationTypeEnum
.
UPDATE
)
@AspectLog
(
description
=
"获取路口驶入方向列表"
,
operationType
=
BaseEnum
.
OperationTypeEnum
.
UPDATE
)
@ApiOperation
(
value
=
"获取路口驶入方向列表"
,
notes
=
"获取路口驶入方向列表"
,
response
=
JsonViewObject
.
class
,
@ApiOperation
(
value
=
"获取路口驶入方向列表"
,
notes
=
"获取路口驶入方向列表"
,
response
=
SpecialDirListVO
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/getInDirList"
,
@PostMapping
(
value
=
"/getInDirList"
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
public
JsonViewObject
getInDirList
(
@RequestBody
CrossIdVO
crossIdVO
)
{
public
JsonViewObject
getInDirList
(
@RequestBody
List
<
CrossIdBO
>
crossIdBOList
)
{
List
<
S
tring
>
inDirList
=
specialServiceService
.
getInDirList
(
crossIdVO
);
List
<
S
pecialDirListVO
>
specialDirListVOList
=
specialServiceService
.
getInDirList
(
crossIdBOList
);
return
JsonViewObject
.
newInstance
().
success
(
inDir
List
);
return
JsonViewObject
.
newInstance
().
success
(
specialDirListVO
List
);
}
}
@AspectLog
(
description
=
"获取路口驶出方向列表"
,
operationType
=
BaseEnum
.
OperationTypeEnum
.
UPDATE
)
@AspectLog
(
description
=
"获取路口驶出方向列表"
,
operationType
=
BaseEnum
.
OperationTypeEnum
.
UPDATE
)
@ApiOperation
(
value
=
"获取路口驶出方向列表"
,
notes
=
"获取路口驶出方向列表"
,
response
=
JsonViewObject
.
class
,
@ApiOperation
(
value
=
"获取路口驶出方向列表"
,
notes
=
"获取路口驶出方向列表"
,
response
=
SpecialDirListVO
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/getOutDirList"
,
@PostMapping
(
value
=
"/getOutDirList"
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
public
JsonViewObject
getOutDirList
(
@RequestBody
CrossIdVO
crossIdVO
)
{
public
JsonViewObject
getOutDirList
(
@RequestBody
List
<
CrossIdBO
>
crossIdBOList
)
{
List
<
S
tring
>
outDirList
=
specialServiceService
.
getOutDirList
(
crossIdVO
);
List
<
S
pecialDirListVO
>
specialDirListVOList
=
specialServiceService
.
getOutDirList
(
crossIdBOList
);
return
JsonViewObject
.
newInstance
().
success
(
outDir
List
);
return
JsonViewObject
.
newInstance
().
success
(
specialDirListVO
List
);
}
}
@AspectLog
(
description
=
"分组列表"
,
operationType
=
BaseEnum
.
OperationTypeEnum
.
UPDATE
)
@AspectLog
(
description
=
"分组列表"
,
operationType
=
BaseEnum
.
OperationTypeEnum
.
UPDATE
)
...
...
signal-control-service/src/main/java/net/wanji/web/service/SpecialServiceService.java
View file @
727eb89c
...
@@ -27,9 +27,9 @@ public interface SpecialServiceService {
...
@@ -27,9 +27,9 @@ public interface SpecialServiceService {
void
updateSpecialServiceDetail
(
UpdateSpecialServiceBO
updateSpecialServiceBO
);
void
updateSpecialServiceDetail
(
UpdateSpecialServiceBO
updateSpecialServiceBO
);
List
<
S
tring
>
getInDirList
(
CrossIdVO
crossIdVO
);
List
<
S
pecialDirListVO
>
getInDirList
(
List
<
CrossIdBO
>
crossIdBOList
);
List
<
S
tring
>
getOutDirList
(
CrossIdVO
crossIdVO
);
List
<
S
pecialDirListVO
>
getOutDirList
(
List
<
CrossIdBO
>
crossIdBOList
);
void
batchLock
(
List
<
LockControlVO
>
lockControlVOList
);
void
batchLock
(
List
<
LockControlVO
>
lockControlVOList
);
...
...
signal-control-service/src/main/java/net/wanji/web/service/impl/SpecialServiceServiceImpl.java
View file @
727eb89c
...
@@ -559,24 +559,48 @@ public class SpecialServiceServiceImpl implements SpecialServiceService {
...
@@ -559,24 +559,48 @@ public class SpecialServiceServiceImpl implements SpecialServiceService {
}
}
@Override
@Override
public
List
<
String
>
getInDirList
(
CrossIdVO
crossIdVO
)
{
public
List
<
SpecialDirListVO
>
getInDirList
(
List
<
CrossIdBO
>
crossIdBOList
)
{
List
<
String
>
res
=
new
ArrayList
<>();
List
<
SpecialDirListVO
>
res
=
new
ArrayList
<>();
String
crossId
=
crossIdVO
.
getCrossId
();
for
(
CrossIdBO
crossIdBO
:
crossIdBOList
)
{
SpecialDirListVO
specialDirListVO
=
new
SpecialDirListVO
();
String
crossId
=
crossIdBO
.
getCrossId
();
specialDirListVO
.
setCrossId
(
crossId
);
List
<
String
>
specialDirList
=
buildInSpecialDirList
(
crossId
);
specialDirListVO
.
setSpecialDirList
(
specialDirList
);
res
.
add
(
specialDirListVO
);
}
return
res
;
}
private
List
<
String
>
buildInSpecialDirList
(
String
crossId
)
{
List
<
String
>
specialDirList
=
new
ArrayList
<>();
List
<
RidInfoEntity
>
ridList
=
ridInfoMapper
.
selectByEndCross
(
crossId
);
List
<
RidInfoEntity
>
ridList
=
ridInfoMapper
.
selectByEndCross
(
crossId
);
for
(
RidInfoEntity
ridInfoEntity
:
ridList
)
{
for
(
RidInfoEntity
ridInfoEntity
:
ridList
)
{
String
name
=
ridInfoEntity
.
getName
();
// 湘江中路:白沙路@劳动西路路段
String
name
=
ridInfoEntity
.
getName
();
// 湘江中路:白沙路@劳动西路路段
String
streetName
=
name
.
split
(
":"
)[
0
];
String
streetName
=
name
.
split
(
":"
)[
0
];
Integer
inDir
=
ridInfoEntity
.
getInDir
();
Integer
inDir
=
ridInfoEntity
.
getInDir
();
String
msgByCode
=
CrossDirEnum
.
getMsgByCode
(
inDir
);
String
msgByCode
=
CrossDirEnum
.
getMsgByCode
(
inDir
);
res
.
add
(
streetName
+
msgByCode
);
specialDirList
.
add
(
streetName
+
msgByCode
);
}
}
return
res
;
return
specialDirList
;
}
}
@Override
@Override
public
List
<
String
>
getOutDirList
(
CrossIdVO
crossIdVO
)
{
public
List
<
SpecialDirListVO
>
getOutDirList
(
List
<
CrossIdBO
>
crossIdBOList
)
{
List
<
SpecialDirListVO
>
res
=
new
ArrayList
<>();
for
(
CrossIdBO
crossIdBO
:
crossIdBOList
)
{
SpecialDirListVO
specialDirListVO
=
new
SpecialDirListVO
();
String
crossId
=
crossIdBO
.
getCrossId
();
specialDirListVO
.
setCrossId
(
crossId
);
List
<
String
>
specialDirList
=
buildOutSpecialDirList
(
crossId
);
specialDirListVO
.
setSpecialDirList
(
specialDirList
);
res
.
add
(
specialDirListVO
);
}
return
res
;
}
private
List
<
String
>
buildOutSpecialDirList
(
String
crossId
)
{
List
<
String
>
res
=
new
ArrayList
<>();
List
<
String
>
res
=
new
ArrayList
<>();
String
crossId
=
crossIdVO
.
getCrossId
();
List
<
RidInfoEntity
>
ridList
=
ridInfoMapper
.
selectByStartCross
(
crossId
);
List
<
RidInfoEntity
>
ridList
=
ridInfoMapper
.
selectByStartCross
(
crossId
);
for
(
RidInfoEntity
ridInfoEntity
:
ridList
)
{
for
(
RidInfoEntity
ridInfoEntity
:
ridList
)
{
String
name
=
ridInfoEntity
.
getName
();
// 湘江中路:白沙路@劳动西路路段
String
name
=
ridInfoEntity
.
getName
();
// 湘江中路:白沙路@劳动西路路段
...
...
signal-control-service/src/main/java/net/wanji/web/vo/specialService/SpecialDirListVO.java
0 → 100644
View file @
727eb89c
package
net
.
wanji
.
web
.
vo
.
specialService
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
/**
* @author Kent HAN
* @date 2023/5/19 17:08
*/
@Data
public
class
SpecialDirListVO
{
@ApiModelProperty
(
value
=
"路口ID"
)
private
String
crossId
;
@ApiModelProperty
(
value
=
"路名方向列表"
)
List
<
String
>
specialDirList
;
}
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