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
63deafd6
Commit
63deafd6
authored
Oct 12, 2022
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
稳压泵消息模板修改
parent
3d82ff6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
PumpSendMessage.java
.../java/com/yeejoin/equipmanage/quartz/PumpSendMessage.java
+3
-1
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+2
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/quartz/PumpSendMessage.java
View file @
63deafd6
...
...
@@ -51,7 +51,7 @@ public class PumpSendMessage implements Job {
}
String
recordMessage
=
PressurePumpMessageEnum
.
MESSAGE_LEVEL_QT_WJ_YXSC
.
getRecordMessage
();
if
(
StringUtil
.
isNotEmpty
(
recordMessage
))
{
body
=
String
.
format
(
recordMessage
,
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
).
format
(
new
Date
()),
equipmentSpecific
.
getName
(),
equipmentSpecific
.
getPosition
(),
pressurePumpEnum
.
getRightValue
());
body
=
String
.
format
(
recordMessage
,
equipmentSpecific
.
getName
(),
equipmentSpecific
.
getPosition
(),
pressurePumpEnum
.
getRightValue
());
}
String
marqueeMessage
=
PressurePumpMessageEnum
.
MESSAGE_LEVEL_QT_WJ_YXSC
.
getMarqueeMessage
();
if
(
StringUtil
.
isNotEmpty
(
marqueeMessage
))
{
...
...
@@ -67,7 +67,9 @@ public class PumpSendMessage implements Job {
}
model
.
setBody
(
body
);
model
.
setTitle
(
"漏水提醒"
);
model
.
setExtras
(
map
);
model
.
setRelationId
(
String
.
valueOf
(
equipmentSpecific
.
getId
()));
model
.
setMsgType
(
"pressurePump"
);
model
.
setIsSendApp
(
false
);
model
.
setTerminal
(
"WEB"
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
63deafd6
...
...
@@ -1474,7 +1474,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
String
recordMessage
=
pumpMessageEnum
.
getRecordMessage
();
if
(
StringUtil
.
isNotEmpty
(
recordMessage
))
{
String
value
=
StringUtil
.
isNotEmpty
(
pressurePumpEnum
.
getLeftValue
())
?
pressurePumpEnum
.
getLeftValue
()
:
pressurePumpEnum
.
getRightValue
();
body
=
String
.
format
(
recordMessage
,
time
,
data
.
getEquipmentSpecificName
(),
data
.
getLocation
(),
value
);
body
=
String
.
format
(
recordMessage
,
data
.
getEquipmentSpecificName
(),
data
.
getLocation
(),
value
);
}
String
marqueeMessage
=
pumpMessageEnum
.
getMarqueeMessage
();
if
(
StringUtil
.
isNotEmpty
(
marqueeMessage
))
{
...
...
@@ -1514,6 +1514,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
model
.
setCategory
(
1
);
List
<
String
>
receive
=
new
ArrayList
<>();
receive
.
add
(
"system"
);
model
.
setRelationId
(
String
.
valueOf
(
data
.
getEquipmentSpecificId
()));
model
.
setRecivers
(
receive
);
Token
token
=
remoteSecurityService
.
getServerToken
();
systemctlFeign
.
create
(
token
.
getAppKey
(),
token
.
getProduct
(),
token
.
getToke
(),
model
);
...
...
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