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
3777bf1a
Commit
3777bf1a
authored
May 05, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 设备厂家实体优化
parent
97eb9881
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
SituationDetectionServiceImpl.java
...wanji/web/service/impl/SituationDetectionServiceImpl.java
+4
-4
SignalManufacturerCountInfoVO.java
.../vo/situationDetection/SignalManufacturerCountInfoVO.java
+3
-3
No files found.
signal-control-service/src/main/java/net/wanji/web/service/impl/SituationDetectionServiceImpl.java
View file @
3777bf1a
...
@@ -669,7 +669,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
...
@@ -669,7 +669,7 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
String
location
=
tBaseCrossInfo
.
getLocation
().
replace
(
"POINT"
,
""
).
replace
(
"("
,
""
).
replace
(
")"
,
""
).
replace
(
" "
,
","
);
String
location
=
tBaseCrossInfo
.
getLocation
().
replace
(
"POINT"
,
""
).
replace
(
"("
,
""
).
replace
(
")"
,
""
).
replace
(
" "
,
","
);
signalOperationModeVO
.
setLocation
(
location
);
signalOperationModeVO
.
setLocation
(
location
);
signalOperationModeVO
.
setCrossName
(
tBaseCrossInfo
.
getName
());
signalOperationModeVO
.
setCrossName
(
tBaseCrossInfo
.
getName
());
signalOperationModeVO
.
setOperationTime
(
DateUtils
.
dateToString
(
signalOperationModeVO
.
getStartTime
(),
DateStyle
.
YYYY_MM_DD_HH_MM_SS
));
signalOperationModeVO
.
setOperationTime
(
DateUtils
.
dateToString
(
signalOperationModeVO
.
getStartTime
(),
DateStyle
.
YYYY_MM_DD_HH_MM_SS
));
}
}
}
}
}
}
...
@@ -742,9 +742,9 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
...
@@ -742,9 +742,9 @@ public class SituationDetectionServiceImpl implements SituationDetectionService
SignalManufacturerCountInfoVO
signalManufacturerCountInfoVO
=
new
SignalManufacturerCountInfoVO
();
SignalManufacturerCountInfoVO
signalManufacturerCountInfoVO
=
new
SignalManufacturerCountInfoVO
();
String
nickName
=
entry
.
getKey
();
String
nickName
=
entry
.
getKey
();
List
<
String
>
crossIdList
=
entry
.
getValue
();
List
<
String
>
crossIdList
=
entry
.
getValue
();
int
onlineCount
=
0
;
Integer
onlineCount
=
0
;
int
offlineCount
=
0
;
Integer
offlineCount
=
0
;
int
faultCount
=
0
;
Integer
faultCount
=
0
;
signalManufacturerCountInfoVO
.
setName
(
nickName
);
signalManufacturerCountInfoVO
.
setName
(
nickName
);
for
(
TDeviceStatusInfo
tDeviceStatusInfo
:
tDeviceStatusInfos
)
{
for
(
TDeviceStatusInfo
tDeviceStatusInfo
:
tDeviceStatusInfos
)
{
String
crossId
=
tDeviceStatusInfo
.
getCode
();
String
crossId
=
tDeviceStatusInfo
.
getCode
();
...
...
signal-control-service/src/main/java/net/wanji/web/vo/situationDetection/SignalManufacturerCountInfoVO.java
View file @
3777bf1a
...
@@ -14,10 +14,10 @@ public class SignalManufacturerCountInfoVO {
...
@@ -14,10 +14,10 @@ public class SignalManufacturerCountInfoVO {
@ApiModelProperty
(
value
=
"厂商名称"
)
@ApiModelProperty
(
value
=
"厂商名称"
)
private
String
name
;
private
String
name
;
@ApiModelProperty
(
value
=
"在线数量"
)
@ApiModelProperty
(
value
=
"在线数量"
)
private
int
onlineCount
;
private
Integer
onlineCount
;
@ApiModelProperty
(
value
=
"离线数量"
)
@ApiModelProperty
(
value
=
"离线数量"
)
private
int
offlineCount
;
private
Integer
offlineCount
;
@ApiModelProperty
(
value
=
"故障数量"
)
@ApiModelProperty
(
value
=
"故障数量"
)
private
int
faultCount
;
private
Integer
faultCount
;
}
}
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