Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
项目统一框架
amos-boot-biz
Commits
cb98b1a8
Commit
cb98b1a8
authored
Mar 01, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新指标推送代码
parent
92501530
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
SpeIndexVo.java
...in/java/com/yeejoin/equipmanage/common/vo/SpeIndexVo.java
+2
-0
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+3
-3
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+3
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/SpeIndexVo.java
View file @
cb98b1a8
...
@@ -31,4 +31,6 @@ public class SpeIndexVo {
...
@@ -31,4 +31,6 @@ public class SpeIndexVo {
private
String
indexValue
;
private
String
indexValue
;
private
String
indexName
;
private
String
indexName
;
private
String
qrCode
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
cb98b1a8
...
@@ -1245,7 +1245,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -1245,7 +1245,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
/**
/**
* 组装数字换流站平台告警数据
* 组装数字换流站平台告警数据
* @param
equipmentSpecificIndex
* @param
* @return
* @return
*/
*/
private
List
<
FireEquipmentFireAlarm
>
createFireEquipmentFireAlarmVo
(
List
<
EquipmentSpecificAlarmLog
>
equipmentAlarmLogs
){
private
List
<
FireEquipmentFireAlarm
>
createFireEquipmentFireAlarmVo
(
List
<
EquipmentSpecificAlarmLog
>
equipmentAlarmLogs
){
...
@@ -1280,13 +1280,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -1280,13 +1280,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
* @param equipmentSpecificIndexList
* @param equipmentSpecificIndexList
*/
*/
private
void
syncSpecificIndexsToGS
(
List
<
EquipmentSpecificIndex
>
equipmentSpecificIndexList
){
private
void
syncSpecificIndexsToGS
(
List
<
EquipmentSpecificIndex
>
equipmentSpecificIndexList
){
if
(
ObjectUtils
.
isEmpty
(
equipmentSpecificIndexList
)
&&
syncSwitch
)
{
if
(
!
ObjectUtils
.
isEmpty
(
equipmentSpecificIndexList
)
&&
syncSwitch
)
{
// 数据同步
// 数据同步
List
<
EquipmentIndexVO
>
fireEquipMeasurementCollect
=
new
ArrayList
<>();
List
<
EquipmentIndexVO
>
fireEquipMeasurementCollect
=
new
ArrayList
<>();
equipmentSpecificIndexList
.
forEach
(
action
->{
equipmentSpecificIndexList
.
forEach
(
action
->{
EquipmentIndexVO
equipmentIndexVO
=
new
EquipmentIndexVO
();
EquipmentIndexVO
equipmentIndexVO
=
new
EquipmentIndexVO
();
BeanUtils
.
copyProperties
(
action
,
equipmentIndexVO
);
BeanUtils
.
copyProperties
(
action
,
equipmentIndexVO
);
fireEquipMeasurementCollect
.
add
(
equipmentIndexVO
);
});
});
if
(
0
<
fireEquipMeasurementCollect
.
size
())
{
if
(
0
<
fireEquipMeasurementCollect
.
size
())
{
syncDataService
.
syncCreatedFireEquipMeasurement
(
fireEquipMeasurementCollect
);
syncDataService
.
syncCreatedFireEquipMeasurement
(
fireEquipMeasurementCollect
);
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
cb98b1a8
...
@@ -363,10 +363,12 @@
...
@@ -363,10 +363,12 @@
spein.emergency_level AS emergencyLevel,
spein.emergency_level AS emergencyLevel,
spein.emergency_level_describe AS emergencyLevelDescribe,
spein.emergency_level_describe AS emergencyLevelDescribe,
spein.`value` AS indexValue,
spein.`value` AS indexValue,
spein.equipment_index_name AS indexName
spein.equipment_index_name AS indexName,
wes.qr_code AS qrCode
FROM
FROM
wl_equipment_specific_index AS spein
wl_equipment_specific_index AS spein
LEFT JOIN wl_equipment_index AS eqin ON spein.equipment_index_id = eqin.id
LEFT JOIN wl_equipment_index AS eqin ON spein.equipment_index_id = eqin.id
LEFT JOIN wl_equipment_specific AS wes ON wes.id = spein.equipment_specific_id
WHERE
WHERE
spein.equipment_specific_id = #{id}
spein.equipment_specific_id = #{id}
ORDER BY
ORDER BY
...
...
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