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 d26a8220
authored
Jan 04, 2024
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
java过滤处理
1 parent
459e363c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/sop/SopHelper.java
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/ControllerSendRemindDemo.java
platform-process/src/test/java/cn/com/glsx/test/JavaNodeTestApplication.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/SopHelper.java
View file @
d26a822
...
@@ -133,7 +133,7 @@ public class SopHelper {
...
@@ -133,7 +133,7 @@ public class SopHelper {
index
->
SopHelper
.
diffDay
(
index
.
getSopJourneyStageEnterTime
(),
index
->
SopHelper
.
diffDay
(
index
.
getSopJourneyStageEnterTime
(),
Integer
.
parseInt
(
diffday
)))
Integer
.
parseInt
(
diffday
)))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
if
(
StringUtils
.
isNotEmpty
(
label
)){
if
(
StringUtils
.
isNotEmpty
(
label
)
&&!
"[]"
.
equals
(
label
)
){
// 过滤标签
// 过滤标签
if
(
CollectionUtils
.
isNotEmpty
(
collect
)){
if
(
CollectionUtils
.
isNotEmpty
(
collect
)){
String
orgId
=
collect
.
get
(
0
).
getOrgId
();
String
orgId
=
collect
.
get
(
0
).
getOrgId
();
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerSendMessageDemo.java
View file @
d26a822
...
@@ -125,8 +125,7 @@ public class ControllerSendMessageDemo {
...
@@ -125,8 +125,7 @@ public class ControllerSendMessageDemo {
String
contentlists
=
SopHelper
.
getListValueFromJsonString
(
taskParam
,
"attachments"
);
String
contentlists
=
SopHelper
.
getListValueFromJsonString
(
taskParam
,
"attachments"
);
customerTouchModel
.
setInstId
(
sopInst
.
getInstId
());
customerTouchModel
.
setInstId
(
sopInst
.
getInstId
());
customerTouchModel
.
setNodeId
(
sopInstNode
.
getNodeId
());
customerTouchModel
.
setNodeId
(
sopInstNode
.
getNodeId
());
String
supMerchantNo
=
SopHelper
.
getValueFromJsonString
(
sopInst
.
getInstParam
(),
String
supMerchantNo
=
SopHelper
.
getValueFromJsonString
(
sopInst
.
getInstParam
(),
"customData"
,
"supMerchantNo"
);
"supMerchantNo"
);
String
merchantId
=
SopHelper
.
getValueFromJsonString
(
sopInst
.
getInstParam
(),
"merchantId"
);
String
merchantId
=
SopHelper
.
getValueFromJsonString
(
sopInst
.
getInstParam
(),
"merchantId"
);
customerTouchModel
.
setMerchantId
(
Integer
.
parseInt
(
merchantId
));
customerTouchModel
.
setMerchantId
(
Integer
.
parseInt
(
merchantId
));
setConverContentList
(
contentlists
,
customerTouchModel
,
sopInst
.
getInstId
(),
setConverContentList
(
contentlists
,
customerTouchModel
,
sopInst
.
getInstId
(),
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerSendRemindDemo.java
View file @
d26a822
...
@@ -121,7 +121,7 @@ public class ControllerSendRemindDemo {
...
@@ -121,7 +121,7 @@ public class ControllerSendRemindDemo {
customerTouchModel
.
setInstId
(
sopInst
.
getInstId
());
customerTouchModel
.
setInstId
(
sopInst
.
getInstId
());
customerTouchModel
.
setType
(
"textcard"
);
customerTouchModel
.
setType
(
"textcard"
);
customerTouchModel
.
setNodeId
(
sopInstNode
.
getNodeId
());
customerTouchModel
.
setNodeId
(
sopInstNode
.
getNodeId
());
String
supMerchantNo
=
SopHelper
.
getValueFromJsonString
(
sopInst
.
getInstParam
(),
"supMerchantNo"
);
String
supMerchantNo
=
SopHelper
.
getValueFromJsonString
(
sopInst
.
getInstParam
(),
"customData"
,
"supMerchantNo"
);
String
merchantId
=
SopHelper
.
getValueFromJsonString
(
sopInst
.
getInstParam
(),
"merchantId"
);
String
merchantId
=
SopHelper
.
getValueFromJsonString
(
sopInst
.
getInstParam
(),
"merchantId"
);
customerTouchModel
.
setMerchantId
(
Integer
.
parseInt
(
merchantId
));
customerTouchModel
.
setMerchantId
(
Integer
.
parseInt
(
merchantId
));
customerTouchModel
.
setSupMerchantNo
(
Integer
.
parseInt
(
supMerchantNo
));
customerTouchModel
.
setSupMerchantNo
(
Integer
.
parseInt
(
supMerchantNo
));
...
...
platform-process/src/test/java/cn/com/glsx/test/JavaNodeTestApplication.java
View file @
d26a822
...
@@ -194,7 +194,7 @@ public class JavaNodeTestApplication {
...
@@ -194,7 +194,7 @@ public class JavaNodeTestApplication {
customerInfo
.
setExternalUserId
(
"wm-ZewEAAA22dA72qtla54HxDPHBQfcg"
);
customerInfo
.
setExternalUserId
(
"wm-ZewEAAA22dA72qtla54HxDPHBQfcg"
);
customerInfo
.
setUserId
(
"wo-ZewEAAA3Ew-zJPQGZHxsU48lRzw-w"
);
customerInfo
.
setUserId
(
"wo-ZewEAAA3Ew-zJPQGZHxsU48lRzw-w"
);
customerInfo
.
setSopJourneyStage
(
"潜客"
);
customerInfo
.
setSopJourneyStage
(
"潜客"
);
customerInfo
.
setSopJourneyStageEnterTime
(
DateUtils
.
parse
(
"202
3-12-27
"
));
customerInfo
.
setSopJourneyStageEnterTime
(
DateUtils
.
parse
(
"202
4-01-03
"
));
resultData
.
put
(
"user1"
,
Arrays
.
asList
(
customerInfo
));
resultData
.
put
(
"user1"
,
Arrays
.
asList
(
customerInfo
));
SopStruct
sopStruct
=
sopService
.
loadSop
(
"xblc7"
);
SopStruct
sopStruct
=
sopService
.
loadSop
(
"xblc7"
);
SopInstNode
sopInstNode
=
sopStruct
.
getInstNodeMap
().
get
(
3
);
SopInstNode
sopInstNode
=
sopStruct
.
getInstNodeMap
().
get
(
3
);
...
...
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