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
af7a9b2f
Commit
af7a9b2f
authored
May 30, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 解决优化bug
parent
a27f0409
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
CrossInfoCache.java
...ice/src/main/java/net/wanji/utc/cache/CrossInfoCache.java
+3
-3
ControlCommandVO.java
.../src/main/java/net/wanji/databus/vo/ControlCommandVO.java
+0
-1
No files found.
signal-utc-service/src/main/java/net/wanji/utc/cache/CrossInfoCache.java
View file @
af7a9b2f
...
@@ -26,7 +26,7 @@ public class CrossInfoCache implements CommandLineRunner {
...
@@ -26,7 +26,7 @@ public class CrossInfoCache implements CommandLineRunner {
@Resource
@Resource
private
ManufacturerInfoMapper
manufacturerInfoMapper
;
private
ManufacturerInfoMapper
manufacturerInfoMapper
;
private
static
final
List
<
CrossInfoPO
>
crossInfoList
=
new
ArrayList
<>();
private
static
List
<
CrossInfoPO
>
crossInfoList
=
new
ArrayList
<>();
/**
/**
* 通过路口编号获取厂商编码
* 通过路口编号获取厂商编码
...
@@ -54,7 +54,7 @@ public class CrossInfoCache implements CommandLineRunner {
...
@@ -54,7 +54,7 @@ public class CrossInfoCache implements CommandLineRunner {
public
CrossInfoPO
getCrossInfoPO
(
String
crossId
)
{
public
CrossInfoPO
getCrossInfoPO
(
String
crossId
)
{
if
(!
CollectionUtils
.
isEmpty
(
crossInfoList
))
{
if
(!
CollectionUtils
.
isEmpty
(
crossInfoList
))
{
for
(
CrossInfoPO
crossInfoPO
:
crossInfoList
)
{
for
(
CrossInfoPO
crossInfoPO
:
crossInfoList
)
{
if
(
StringUtils
.
equals
(
crossId
,
crossInfoPO
.
get
Code
()))
{
if
(
StringUtils
.
equals
(
crossId
,
crossInfoPO
.
get
Id
()))
{
return
crossInfoPO
;
return
crossInfoPO
;
}
}
}
}
...
@@ -70,7 +70,7 @@ public class CrossInfoCache implements CommandLineRunner {
...
@@ -70,7 +70,7 @@ public class CrossInfoCache implements CommandLineRunner {
public
void
init
()
{
public
void
init
()
{
List
<
CrossInfoPO
>
crossInfoPOList
=
crossInfoMapper
.
selectAll
();
List
<
CrossInfoPO
>
crossInfoPOList
=
crossInfoMapper
.
selectAll
();
if
(!
CollectionUtils
.
isEmpty
(
crossInfoPOList
))
{
if
(!
CollectionUtils
.
isEmpty
(
crossInfoPOList
))
{
crossInfo
PO
List
=
crossInfoPOList
;
crossInfoList
=
crossInfoPOList
;
}
}
}
}
}
}
wj-databus/src/main/java/net/wanji/databus/vo/ControlCommandVO.java
View file @
af7a9b2f
...
@@ -29,7 +29,6 @@ public class ControlCommandVO {
...
@@ -29,7 +29,6 @@ public class ControlCommandVO {
private
Integer
command
;
private
Integer
command
;
@ApiModelProperty
(
value
=
"1全红 2黄闪 3关灯"
)
@ApiModelProperty
(
value
=
"1全红 2黄闪 3关灯"
)
@NotNull
(
message
=
"控制类型不可为空,1全红 2黄闪 3关灯"
)
private
Integer
controlType
;
private
Integer
controlType
;
@ApiModelProperty
(
value
=
"持续时间"
)
@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