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 7d8ae9e6
authored
Jan 15, 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
ee74b129
871a8bcb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
8 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerDisTasksDemo.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerSendMessageDemo.java
platform-process/src/main/resources/config-prod.properties
platform-process/src/test/java/cn/com/glsx/test/JavaNodeTestApplication.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerDisTasksDemo.java
View file @
7d8ae9e
...
@@ -99,8 +99,9 @@ public class ControllerDisTasksDemo {
...
@@ -99,8 +99,9 @@ public class ControllerDisTasksDemo {
e
.
printStackTrace
();
e
.
printStackTrace
();
map
.
put
(
"errMessage"
,
e
.
getMessage
());
map
.
put
(
"errMessage"
,
e
.
getMessage
());
}
}
}
else
{
map
.
put
(
"message"
,
"未找到匹配客户"
);
}
}
map
.
put
(
"message"
,
"未找到匹配客户"
);
return
(
JSONObject
)
JSONObject
.
toJSON
(
map
);
return
(
JSONObject
)
JSONObject
.
toJSON
(
map
);
}
}
}
}
\ No newline at end of file
\ No newline at end of file
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerSendMessageDemo.java
View file @
7d8ae9e
...
@@ -57,10 +57,12 @@ public class ControllerSendMessageDemo {
...
@@ -57,10 +57,12 @@ public class ControllerSendMessageDemo {
Iterator
<
Entry
<
String
,
List
<
CustomerInfo
>>>
iterator
=
collect
.
entrySet
().
iterator
();
Iterator
<
Entry
<
String
,
List
<
CustomerInfo
>>>
iterator
=
collect
.
entrySet
().
iterator
();
CustomerTouchModel
customerTouchModel
=
new
CustomerTouchModel
();
CustomerTouchModel
customerTouchModel
=
new
CustomerTouchModel
();
List
<
SopTaskExecuteStaffModel
>
sopTaskExecuteStaffModels
=
new
ArrayList
<>();
List
<
SopTaskExecuteStaffModel
>
sopTaskExecuteStaffModels
=
new
ArrayList
<>();
List
<
String
>
phoneList
=
new
ArrayList
<>();
// 构建基础参数
// 构建基础参数
switch
(
sendType
)
{
switch
(
sendType
)
{
case
"10"
:
case
"10"
:
buildDefaultParam
(
customerTouchModel
,
sopInst
,
sopInstNode
,
nodeParam
,
true
);
buildDefaultParam
(
customerTouchModel
,
sopInst
,
sopInstNode
,
nodeParam
,
true
);
customerTouchModel
.
setSendType
(
1
);
break
;
break
;
case
"8"
:
case
"8"
:
buildDefaultParam
(
customerTouchModel
,
sopInst
,
sopInstNode
,
nodeParam
,
false
);
buildDefaultParam
(
customerTouchModel
,
sopInst
,
sopInstNode
,
nodeParam
,
false
);
...
@@ -74,8 +76,8 @@ public class ControllerSendMessageDemo {
...
@@ -74,8 +76,8 @@ public class ControllerSendMessageDemo {
default
:
default
:
break
;
break
;
}
}
// 构建发送者和接收者参数
while
(
iterator
.
hasNext
())
{
while
(
iterator
.
hasNext
())
{
List
<
String
>
phoneList
=
new
ArrayList
<>();
Entry
<
String
,
List
<
CustomerInfo
>>
next
=
iterator
.
next
();
Entry
<
String
,
List
<
CustomerInfo
>>
next
=
iterator
.
next
();
String
key
=
next
.
getKey
();
String
key
=
next
.
getKey
();
List
<
CustomerInfo
>
value
=
next
.
getValue
();
List
<
CustomerInfo
>
value
=
next
.
getValue
();
...
...
platform-process/src/main/resources/config-prod.properties
View file @
7d8ae9e
scrm.baseurl
=
http://scrm.glsx.com.cn
sop.baseurl
=
http://gateway.platform.glsx.com.cn
notict.url
=
http://scrm.glsx.com.cn/dj-scrm-wx-work-attachment-customer/#/task
scrm.data.baseurl
=
http://scrm.glsx.com.cn/rop-scrm-datahub/router
\ No newline at end of file
\ No newline at end of file
scrm.baseurl
=
https://scrm.glsx.com.cn
sop.baseurl
=
https://gateway.platform.glsx.com.cn
notict.url
=
https://scrm.glsx.com.cn/dj-scrm-wx-work-attachment-customer/#/task
scrm.data.baseurl
=
https://scrm.glsx.com.cn/rop-scrm-datahub/router
\ No newline at end of file
\ No newline at end of file
platform-process/src/test/java/cn/com/glsx/test/JavaNodeTestApplication.java
View file @
7d8ae9e
...
@@ -166,8 +166,22 @@ public class JavaNodeTestApplication {
...
@@ -166,8 +166,22 @@ public class JavaNodeTestApplication {
customerInfo
.
setSopJourneyEnterTime
(
new
Date
());
customerInfo
.
setSopJourneyEnterTime
(
new
Date
());
customerInfo
.
setExternalUserId
(
"wm-ZewEAAA22dA72qtla54HxDPHBQfcg"
);
customerInfo
.
setExternalUserId
(
"wm-ZewEAAA22dA72qtla54HxDPHBQfcg"
);
customerInfo
.
setSopJourneyStage
(
"意向客户"
);
customerInfo
.
setSopJourneyStage
(
"意向客户"
);
customerInfo
.
setSopJourneyStageEnterTime
(
DateUtils
.
parse
(
"2024-01-04"
));
customerInfo
.
setUserId
(
"xxx"
);
resultData
.
put
(
"user2"
,
Arrays
.
asList
(
customerInfo
));
customerInfo
.
setSopJourneyStageEnterTime
(
DateUtils
.
parse
(
"2024-01-11"
));
CustomerInfo
customerInfo1
=
new
CustomerInfo
();
customerInfo1
.
setOneId
(
"123456"
);
customerInfo1
.
setCustomerPhone
(
"13476670745"
);
customerInfo1
.
setOrgId
(
"44211227"
);
customerInfo1
.
setVin
(
"ceshi"
);
customerInfo1
.
setMessageId
(
"1"
);
customerInfo1
.
setMessageContent
(
"ceshi"
);
customerInfo1
.
setSopJourneyId
(
"xblc7"
);
customerInfo1
.
setSopJourneyEnterTime
(
new
Date
());
customerInfo1
.
setExternalUserId
(
"wm-ZewEAAA22dA72qtla54HxDPHBQfcg"
);
customerInfo1
.
setSopJourneyStage
(
"意向客户"
);
customerInfo1
.
setUserId
(
"bbbb"
);
customerInfo1
.
setSopJourneyStageEnterTime
(
DateUtils
.
parse
(
"2024-01-11"
));
resultData
.
put
(
"user2"
,
Arrays
.
asList
(
customerInfo
,
customerInfo1
));
SopStruct
sopStruct
=
sopService
.
loadSop
(
"xblc7"
);
SopStruct
sopStruct
=
sopService
.
loadSop
(
"xblc7"
);
SopInstNode
sopInstNode
=
sopStruct
.
getInstNodeMap
().
get
(
3
);
SopInstNode
sopInstNode
=
sopStruct
.
getInstNodeMap
().
get
(
3
);
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
...
...
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