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 c56df96b
authored
Sep 25, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]旅程节点执行添加
1 parent
e0e73b41
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 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/ControllerFoundInsDemo.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/SopHelper.java
View file @
c56df96
...
@@ -99,10 +99,9 @@ public class SopHelper {
...
@@ -99,10 +99,9 @@ public class SopHelper {
*/
*/
public
static
List
<
CustomerInfo
>
getMeetWithCustomer
(
SopInstNode
sopInstNode
,
Map
<
String
,
Object
>
resultData
)
{
public
static
List
<
CustomerInfo
>
getMeetWithCustomer
(
SopInstNode
sopInstNode
,
Map
<
String
,
Object
>
resultData
)
{
String
nodeParam
=
sopInstNode
.
getNodeParam
();
String
nodeParam
=
sopInstNode
.
getNodeParam
();
String
nodeKey
=
sopInstNode
.
getNodeKey
();
String
key
=
"user"
+
getValueFromJsonString
(
nodeParam
,
"day"
);
String
[]
split
=
nodeKey
.
split
(
"\\|"
);
// 拿到过滤出阶段的客户
// 拿到过滤出阶段的客户
List
<
CustomerInfo
>
customerInfoList
=
JSON
.
parseArray
(
JSON
.
toJSONString
(
resultData
.
get
(
split
[
0
]
)),
CustomerInfo
.
class
);
List
<
CustomerInfo
>
customerInfoList
=
JSON
.
parseArray
(
JSON
.
toJSONString
(
resultData
.
get
(
key
)),
CustomerInfo
.
class
);
String
diffday
=
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"day"
);
String
diffday
=
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"day"
);
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isEmpty
(
diffday
))
{
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isEmpty
(
diffday
))
{
return
null
;
return
null
;
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerFoundInsDemo.java
View file @
c56df96
...
@@ -52,7 +52,9 @@ public class ControllerFoundInsDemo {
...
@@ -52,7 +52,9 @@ public class ControllerFoundInsDemo {
String
s
=
stringObjectMap
.
get
(
key
)
+
""
;
String
s
=
stringObjectMap
.
get
(
key
)
+
""
;
CustomerInfo
customerInfo
=
new
CustomerInfo
();
CustomerInfo
customerInfo
=
new
CustomerInfo
();
customerInfo
.
setVin
(
key
);
customerInfo
.
setVin
(
key
);
if
(
stringObjectMap
.
get
(
key
)!=
null
)
{
customerInfo
.
setArrivalDate
(
DateFormatUtils
.
formatUTC
(
Long
.
parseLong
(
s
),
"yyyy-mm-dd mm:ss"
));
customerInfo
.
setArrivalDate
(
DateFormatUtils
.
formatUTC
(
Long
.
parseLong
(
s
),
"yyyy-mm-dd mm:ss"
));
}
result
.
add
(
customerInfo
);
result
.
add
(
customerInfo
);
}
}
}
}
...
...
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