Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ab289d3e
authored
Oct 09, 2023
by
李小龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 语音短信模板
parent
0e06c7d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
server-common/src/main/java/com/makeit/utils/msg/sender/SmsVoiceSender.java
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
server-common/src/main/java/com/makeit/utils/msg/sender/SmsVoiceSender.java
View file @
ab289d3e
...
...
@@ -67,16 +67,16 @@ public class SmsVoiceSender implements IMsgSender{
paramMap
.
put
(
"mobile"
,
vo
);
//告警类型 数据字典 1 长者跌倒 2 呼吸异常 3 心率异常 4 行为异常
if
(
StringUtils
.
equals
(
alarmType
,
"1"
))
{
paramMap
.
put
(
"vid"
,
"14
1
"
);
paramMap
.
put
(
"vid"
,
"14
2
"
);
}
if
(
StringUtils
.
equals
(
alarmType
,
"2"
))
{
paramMap
.
put
(
"vid"
,
""
);
paramMap
.
put
(
"vid"
,
"
143
"
);
}
if
(
StringUtils
.
equals
(
alarmType
,
"3"
))
{
paramMap
.
put
(
"vid"
,
""
);
paramMap
.
put
(
"vid"
,
"
144
"
);
}
if
(
StringUtils
.
equals
(
alarmType
,
"4"
))
{
paramMap
.
put
(
"vid"
,
""
);
paramMap
.
put
(
"vid"
,
"
145
"
);
}
String
[]
param
=
msgDTO
.
getParam
();
...
...
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
View file @
ab289d3e
...
...
@@ -327,6 +327,20 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
msgSendDTO
.
setOriContent
(
alarmRecord
.
getContent
());
msgSendDTO
.
setSubject
(
alarmRecord
.
getContent
());
msgSendDTO
.
setParam
(
alarmRecord
.
getElderName
());
String
alarmType
=
alarmConfig
.
getAlarmType
();
//告警类型 数据字典 1 长者跌倒 2 呼吸异常 3 心率异常 4 行为异常
if
(
StringUtils
.
equals
(
alarmType
,
"1"
))
{
msgSendDTO
.
setParam
(
alarmRecord
.
getElderName
(),
alarmRecord
.
getRegionName
());
}
if
(
StringUtils
.
equals
(
alarmType
,
"2"
))
{
msgSendDTO
.
setParam
(
alarmRecord
.
getElderName
(),
alarmRecord
.
getRemark
());
}
if
(
StringUtils
.
equals
(
alarmType
,
"3"
))
{
msgSendDTO
.
setParam
(
alarmRecord
.
getElderName
(),
alarmRecord
.
getRemark
());
}
if
(
StringUtils
.
equals
(
alarmType
,
"4"
))
{
msgSendDTO
.
setParam
(
alarmRecord
.
getElderName
(),
alarmRecord
.
getRegionName
());
}
msgSendDTO
.
setAlarmType
(
alarmConfig
.
getAlarmType
());
//todo 小程序消息
msgUtil
.
send
(
msgSendDTO
);
...
...
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