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
dfcc6fa5
Commit
dfcc6fa5
authored
Apr 01, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改点图bug
parent
1b8d4c86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+2
-0
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+11
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
dfcc6fa5
...
@@ -102,6 +102,8 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -102,6 +102,8 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
CommonPageInfoParam
param
=
new
CommonPageInfoParam
();
CommonPageInfoParam
param
=
new
CommonPageInfoParam
();
if
(
AlarmTypeEnum
.
GZGJ
.
getCode
().
equals
(
alarmType
))
{
if
(
AlarmTypeEnum
.
GZGJ
.
getCode
().
equals
(
alarmType
))
{
param
.
setIsFireAlarm
(
"false"
);
param
.
setIsFireAlarm
(
"false"
);
}
else
if
(
AlarmTypeEnum
.
HZGJ
.
getCode
().
equals
(
alarmType
))
{
param
.
setAlarmType
(
alarmType
);
}
}
List
<
HashMap
<
String
,
Object
>>
list
=
this
.
baseMapper
.
getAlarmList
(
param
);
List
<
HashMap
<
String
,
Object
>>
list
=
this
.
baseMapper
.
getAlarmList
(
param
);
List
<
EquipmentAlarmDownloadVO
>
equipmentDownloads
=
handleExportData
(
ids
,
list
);
List
<
EquipmentAlarmDownloadVO
>
equipmentDownloads
=
handleExportData
(
ids
,
list
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
dfcc6fa5
...
@@ -321,8 +321,17 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -321,8 +321,17 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
}
}
Map
<
String
,
Object
>
map
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
equipmentStateVo
));
Map
<
String
,
Object
>
map
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
equipmentStateVo
));
map
.
put
(
canvasTopic
,
topicObject
);
map
.
put
(
canvasTopic
,
topicObject
);
// 发送数据至画布
mqttSendGateway
.
sendToMqtt
(
canvasTopic
,
JSON
.
toJSONString
(
map
));
TransactionSynchronizationManager
.
registerSynchronization
(
new
TransactionSynchronization
()
{
@Override
public
void
afterCompletion
(
int
status
)
{
if
(
TransactionSynchronization
.
STATUS_COMMITTED
==
status
)
{
// 发送数据至画布
mqttSendGateway
.
sendToMqtt
(
canvasTopic
,
JSON
.
toJSONString
(
map
));
}
}
});
}
}
}
}
...
...
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