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 4ff9e2ed
authored
Jan 05, 2024
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/v2.0.1' into v2.0.1
2 parents
dc247aa8
d26a8220
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/assembler/KeHuLvChengAssembler.java
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/assembler/KeHuLvChengAssembler.java
View file @
4ff9e2e
...
@@ -126,6 +126,7 @@ public class KeHuLvChengAssembler {
...
@@ -126,6 +126,7 @@ public class KeHuLvChengAssembler {
SopTplNode
stageNode
=
PROTO_CONVERTER
.
proto2tpl
(
stageProto
);
SopTplNode
stageNode
=
PROTO_CONVERTER
.
proto2tpl
(
stageProto
);
stageNode
.
setNodeId
(
tplNodeLastNum
++);
stageNode
.
setNodeId
(
tplNodeLastNum
++);
stageNode
.
setNodeName
(
String
.
format
(
"%s-%s"
,
stageValue
,
stageNode
.
getNodeName
()));
stageNode
.
setNodeParamDef
(
JacksonUtil
.
jsonStrDeepSub
(
STAGE_TPL_NODE_PARAM_DEF_TPL
,
String
.
format
(
"{\"stage\":{\"defaultValue\":\"%s\"}}"
,
stageValue
)));
stageNode
.
setNodeParamDef
(
JacksonUtil
.
jsonStrDeepSub
(
STAGE_TPL_NODE_PARAM_DEF_TPL
,
String
.
format
(
"{\"stage\":{\"defaultValue\":\"%s\"}}"
,
stageValue
)));
stageNode
.
setNodeKey
(
String
.
format
(
"%s%d"
,
stageProto
.
getNodeKey
(),
stageOrder
));
stageNode
.
setNodeKey
(
String
.
format
(
"%s%d"
,
stageProto
.
getNodeKey
(),
stageOrder
));
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/sop/SopHelper.java
View file @
4ff9e2e
...
@@ -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 @
4ff9e2e
...
@@ -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 @
4ff9e2e
...
@@ -111,17 +111,17 @@ public class ControllerSendRemindDemo {
...
@@ -111,17 +111,17 @@ public class ControllerSendRemindDemo {
SopTaskExecuteStaffModel
sopTaskExecuteStaffModel
=
customerTouchModel
.
getExecuteStaffRequestList
()
SopTaskExecuteStaffModel
sopTaskExecuteStaffModel
=
customerTouchModel
.
getExecuteStaffRequestList
()
.
get
(
0
);
.
get
(
0
);
int
size
=
sopTaskExecuteStaffModel
.
getSendExternalUserId
().
size
();
int
size
=
sopTaskExecuteStaffModel
.
getSendExternalUserId
().
size
();
noticeContent
.
replace
(
"{客户人数}"
,
size
+
""
);
String
replace
=
noticeContent
.
replace
(
"{客户人数}"
,
size
+
""
);
// 链接追加参数
// 链接追加参数
customerTouchModel
.
setUrl
(
ConfigUtils
.
getProperty
(
"notict.url"
)+
"?notebatchNo="
+
notebatchNo
+
"&batchNo="
+
customerTouchModel
.
setUrl
(
ConfigUtils
.
getProperty
(
"notict.url"
)+
"?notebatchNo="
+
notebatchNo
+
"&batchNo="
+
batchNo
+
"&nodeId="
+
sopInstNode
.
getNodeId
()+
"&userId="
+
sopTaskExecuteStaffModel
.
getSendUserId
()+
"¬iceContent="
+
noticeContent
);
batchNo
+
"&nodeId="
+
sopInstNode
.
getNodeId
()+
"&userId="
+
sopTaskExecuteStaffModel
.
getSendUserId
()+
"¬iceContent="
+
replace
);
customerTouchModel
.
setTitle
(
"客户跟进提醒"
);
customerTouchModel
.
setTitle
(
"客户跟进提醒"
);
customerTouchModel
.
setDescription
(
"您有"
+
sopTaskExecuteStaffModel
.
getSendExternalUserId
().
size
()+
"位客户的待跟进,请及时跟进。"
);
customerTouchModel
.
setDescription
(
"您有"
+
sopTaskExecuteStaffModel
.
getSendExternalUserId
().
size
()+
"位客户的待跟进,请及时跟进。"
);
String
msgtype
=
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"msgtype"
);
String
msgtype
=
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"msgtype"
);
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 @
4ff9e2e
...
@@ -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