Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2b2bacf2
authored
Jan 12, 2024
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
java配置添加
1 parent
8d1d339a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerSendMessageDemo.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerSendMessageDemo.java
View file @
2b2bacf
...
@@ -49,7 +49,7 @@ public class ControllerSendMessageDemo {
...
@@ -49,7 +49,7 @@ public class ControllerSendMessageDemo {
List
<
CustomerInfo
>
customerInfoList
=
SopHelper
.
getMeetWithCustomer
(
sopInstNode
,
resultData
);
List
<
CustomerInfo
>
customerInfoList
=
SopHelper
.
getMeetWithCustomer
(
sopInstNode
,
resultData
);
// 营销的客户存在
// 营销的客户存在
if
(
CollectionUtils
.
isNotEmpty
(
customerInfoList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
customerInfoList
))
{
// 获取营销类型 1
.短信发送 2.企微群发 3
.企微朋友圈
// 获取营销类型 1
0.短信发送 9.企微群发 8
.企微朋友圈
String
sendType
=
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"taskType"
);
String
sendType
=
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"taskType"
);
if
(
StringUtils
.
isNotEmpty
(
sendType
))
{
if
(
StringUtils
.
isNotEmpty
(
sendType
))
{
List
<
CustomerTouchModel
>
customerTouchModels
=
new
ArrayList
<>();
List
<
CustomerTouchModel
>
customerTouchModels
=
new
ArrayList
<>();
...
@@ -152,6 +152,8 @@ public class ControllerSendMessageDemo {
...
@@ -152,6 +152,8 @@ public class ControllerSendMessageDemo {
if
(
CollectionUtils
.
isNotEmpty
(
customerTouchSourceModels
))
{
if
(
CollectionUtils
.
isNotEmpty
(
customerTouchSourceModels
))
{
for
(
CustomerTouchSourceModel
customerTouchSourceModel
:
customerTouchSourceModels
)
{
for
(
CustomerTouchSourceModel
customerTouchSourceModel
:
customerTouchSourceModels
)
{
Integer
attType
=
customerTouchSourceModel
.
getAttType
();
Integer
attType
=
customerTouchSourceModel
.
getAttType
();
// attType 1.文本 2.图片 3.视频 4.小程序
// 小程序替换参数 flag 发送短信替换签名
if
(
4
==
attType
.
intValue
())
{
if
(
4
==
attType
.
intValue
())
{
String
attContent
=
customerTouchSourceModel
.
getAttContent
();
String
attContent
=
customerTouchSourceModel
.
getAttContent
();
String
replace
=
attContent
.
replace
(
"{1}"
,
merchantId
).
replace
(
"{2}"
,
nodeId
+
""
)
String
replace
=
attContent
.
replace
(
"{1}"
,
merchantId
).
replace
(
"{2}"
,
nodeId
+
""
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment