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
df598008
Commit
df598008
authored
May 28, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装备报废消息发送至中心级
parent
f693e30b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+10
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
df598008
...
...
@@ -1979,6 +1979,16 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
log
.
info
(
String
.
format
(
"发送eqm转kafka消息失败:%s"
,
exp
.
getMessage
()));
}
// idxFeign.handleEquipNotScrapWhenExpired(String.valueOf(e.get("id")), String.valueOf(e.get("bizOrgCode")), String.valueOf(e.get("bizOrgName")));
// 发送消息,message监听,转发给中心级
Map
<
String
,
Object
>
mapZxj
=
new
HashMap
<>();
mapZxj
.
put
(
"topic"
,
"equip/scrap/put"
);
mapZxj
.
put
(
"data"
,
map
);
try
{
emqKeeper
.
getMqttClient
().
publish
(
"equip/scrap/put/zxj"
,
JSON
.
toJSONString
(
mapZxj
).
getBytes
(),
1
,
false
);
}
catch
(
MqttException
exp
)
{
log
.
info
(
String
.
format
(
"发送eqm消息,message根据该消息转发为kafka消息,失败信息:%s"
,
exp
.
getMessage
()));
}
}
}
...
...
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