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
efdd8a3e
Commit
efdd8a3e
authored
Jul 05, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 统一特殊控制类型码值
parent
82f74dc6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
FeignProxyServiceImpl.java
...ava/net/wanji/web/service/impl/FeignProxyServiceImpl.java
+2
-2
DTControlCommandServiceImpl.java
.../service/controller/impl/DTControlCommandServiceImpl.java
+2
-2
ControlCommandVO.java
.../src/main/java/net/wanji/databus/vo/ControlCommandVO.java
+1
-1
No files found.
signal-control-service/src/main/java/net/wanji/web/service/impl/FeignProxyServiceImpl.java
View file @
efdd8a3e
...
...
@@ -71,7 +71,7 @@ public class FeignProxyServiceImpl implements FeignProxyService {
String
resultMessage
=
""
;
Integer
controlType
=
commandVO
.
getControlType
();
JsonViewObject
jsonViewObject
=
JsonViewObject
.
newInstance
();
if
(
1
==
controlType
)
{
if
(
3
==
controlType
)
{
jsonViewObject
=
utcFeignClients
.
allRedControl
(
commandVO
);
resultMessage
=
ControlModeEnum
.
FULL_RED
.
getName
();
}
...
...
@@ -79,7 +79,7 @@ public class FeignProxyServiceImpl implements FeignProxyService {
jsonViewObject
=
utcFeignClients
.
yellowLightControl
(
commandVO
);
resultMessage
=
ControlModeEnum
.
YELLOW_FLASH
.
getName
();
}
if
(
3
==
controlType
)
{
if
(
1
==
controlType
)
{
jsonViewObject
=
utcFeignClients
.
closeLightControl
(
commandVO
);
resultMessage
=
ControlModeEnum
.
OFF_LIGHT
.
getName
();
}
...
...
signal-utc-dt-service/src/main/java/net/wanji/utc/dt/service/controller/impl/DTControlCommandServiceImpl.java
View file @
efdd8a3e
...
...
@@ -348,13 +348,13 @@ public class DTControlCommandServiceImpl implements ControlCommandService {
if
(
commandVO
.
getCommand
()
==
0
)
{
controlmodel
=
ControlModelEnum
.
FIXED_CYCLE
.
getDtControlHex
();
// 取消控制,设置为固定配时
}
else
{
if
(
commandVO
.
getControlType
()
==
1
)
{
// 全红
if
(
commandVO
.
getControlType
()
==
3
)
{
// 全红
controlmodel
=
ControlModelEnum
.
RED_CONTROL
.
getDtControlHex
();
}
if
(
commandVO
.
getControlType
()
==
2
)
{
// 黄闪
controlmodel
=
ControlModelEnum
.
YELLOW_CONTROL
.
getDtControlHex
();
}
if
(
commandVO
.
getControlType
()
==
3
)
{
// 关灯
if
(
commandVO
.
getControlType
()
==
1
)
{
// 关灯
controlmodel
=
ControlModelEnum
.
CLOSED_CONTROL
.
getDtControlHex
();
}
}
...
...
wj-databus/src/main/java/net/wanji/databus/vo/ControlCommandVO.java
View file @
efdd8a3e
...
...
@@ -28,7 +28,7 @@ public class ControlCommandVO {
@Min
(
value
=
0
,
message
=
"控制类型:1是;0否"
)
private
Integer
command
;
@ApiModelProperty
(
value
=
"1
全红 2黄闪 3关灯
"
)
@ApiModelProperty
(
value
=
"1
关灯 2黄闪 3全红
"
)
private
Integer
controlType
;
@ApiModelProperty
(
value
=
"持续时间"
)
...
...
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