Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
873d1af5
Commit
873d1af5
authored
Jun 25, 2021
by
郭武斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改发送短信
parent
bcbf8365
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
8 deletions
+24
-8
AlertCalledAction.java
...os/boot/module/jcs/biz/rule/action/AlertCalledAction.java
+24
-8
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/rule/action/AlertCalledAction.java
View file @
873d1af5
...
@@ -2,10 +2,10 @@ package com.yeejoin.amos.boot.module.jcs.biz.rule.action;
...
@@ -2,10 +2,10 @@ package com.yeejoin.amos.boot.module.jcs.biz.rule.action;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Set
;
import
javax.annotation.PostConstruct
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -84,19 +84,35 @@ public class AlertCalledAction {
...
@@ -84,19 +84,35 @@ public class AlertCalledAction {
List
<
Long
>
seqs
=
StringUtil
.
String2LongList
(
sendIds
);
List
<
Long
>
seqs
=
StringUtil
.
String2LongList
(
sendIds
);
if
(
ValidationUtil
.
isEmpty
(
seqs
))
if
(
ValidationUtil
.
isEmpty
(
seqs
))
{
{
//构建短信参数
//构建短信参数
HashMap
<
String
,
String
>
smsParams
=
new
HashMap
<
String
,
String
>();
HashMap
<
String
,
String
>
smsParams
=
new
HashMap
<
String
,
String
>();
smsParams
.
put
(
"smsCode"
,
smsCode
);
Map
<
String
,
String
>
objectMap
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
object
),
HashMap
.
class
);
Map
<
String
,
String
>
objectMap
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
object
),
HashMap
.
class
);
smsParams
.
putAll
(
objectMap
);
smsParams
.
putAll
(
objectMap
);
//查询人员手机号
//发送短信
Set
<
String
>
mobiles
=
new
HashSet
<>();
List
<
OrgUsrDto
>
orgUsrDtos
=
orgUsrService
.
queryBatchSeq
(
seqs
);
List
<
OrgUsrDto
>
orgUsrDtos
=
orgUsrService
.
queryBatchSeq
(
seqs
);
for
(
OrgUsrDto
orgUsrDto
:
orgUsrDtos
)
for
(
OrgUsrDto
orgUsrDto
:
orgUsrDtos
)
{
// mobiles.add(e);
}
//发送短信
sendAlertCalleCmd
(
smsCode
,
mobiles
,
smsParams
);
}
}
public
void
sendAlertCalleCmd
(
String
smsCode
,
Set
<
String
>
mobiles
,
HashMap
<
String
,
String
>
smsParams
)
{
if
(!
ValidationUtil
.
isEmpty
(
mobiles
))
{
//构建短信参数
smsParams
.
put
(
"smsCode"
,
smsCode
);
for
(
String
mobile
:
mobiles
)
{
{
// smsParams.put("mobile", orgUsrDto.g
e);
smsParams
.
put
(
"mobile"
,
mobil
e
);
//发送短信
Systemctl
.
smsClient
.
sendCommonSms
(
smsParams
);
Systemctl
.
smsClient
.
sendCommonSms
(
smsParams
);
}
}
...
...
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