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 7878e771
authored
Jan 05, 2024
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
java任务新增
1 parent
d26a8220
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
platform-process-api/src/main/java/cn/com/glsx/process/modules/mapper/SopInstNodeMapper.java
platform-process-api/src/main/java/cn/com/glsx/process/modules/model/task/SopTaskSearch.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
platform-process/src/main/resources/mapper/SopInstNodeMapper.xml
platform-process/src/test/java/cn/com/glsx/test/JavaNodeTestApplication.java
platform-process-api/src/main/java/cn/com/glsx/process/modules/mapper/SopInstNodeMapper.java
View file @
7878e77
...
...
@@ -18,7 +18,7 @@ public interface SopInstNodeMapper extends CommonBaseMapper<SopInstNode> {
int
resetInstNodeDailyCount
(
@Param
(
"instId"
)
String
instId
);
List
<
SopTaskDTO
>
findPageListByInstId
(
@Param
(
"instId"
)
String
instId
);
List
<
SopTaskDTO
>
findPageListByInstId
(
@Param
(
"instId"
)
String
instId
,
@Param
(
"stageid"
)
Integer
stageid
);
int
updateNodeParamById
(
@Param
(
"instNodeId"
)
Integer
instNodeId
,
@Param
(
"nodeParam"
)
Map
<
String
,
Object
>
nodeParam
);
...
...
platform-process-api/src/main/java/cn/com/glsx/process/modules/model/task/SopTaskSearch.java
View file @
7878e77
...
...
@@ -13,4 +13,5 @@ public class SopTaskSearch extends Page implements Serializable {
*/
private
String
instId
;
private
Integer
stageid
;
}
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
View file @
7878e77
...
...
@@ -577,7 +577,7 @@ public class SopInstService {
public
PageInfo
<
SopTaskDTO
>
getTaskList
(
SopTaskSearch
search
)
{
PageHelper
.
startPage
(
search
.
getPageNumber
(),
search
.
getPageSize
());
List
<
SopTaskDTO
>
sopTaskDTOList
=
sopInstNodeMapper
.
findPageListByInstId
(
search
.
getInstId
());
List
<
SopTaskDTO
>
sopTaskDTOList
=
sopInstNodeMapper
.
findPageListByInstId
(
search
.
getInstId
()
,
search
.
getStageid
()
);
if
(
org
.
apache
.
commons
.
collections
.
CollectionUtils
.
isNotEmpty
(
sopTaskDTOList
)){
List
<
Integer
>
collect
=
sopTaskDTOList
.
stream
().
map
(
SopTaskDTO:
:
getNodeId
)
.
collect
(
Collectors
.
toList
());
...
...
platform-process/src/main/resources/mapper/SopInstNodeMapper.xml
View file @
7878e77
...
...
@@ -38,6 +38,7 @@
<select
id=
"findPageListByInstId"
resultType=
"cn.com.glsx.process.modules.model.task.SopTaskDTO"
>
select inst_id as instId, node_id as nodeId,node_param as nodeParam from sop_inst_node where inst_id=#{instId} and node_param!='' and node_param->'$.taskType' is not null
and node_param->'$.stageid'=#{stageid}
</select>
<update
id=
"resetInstNodeDailyCount"
>
...
...
platform-process/src/test/java/cn/com/glsx/test/JavaNodeTestApplication.java
View file @
7878e77
...
...
@@ -165,10 +165,9 @@ public class JavaNodeTestApplication {
customerInfo
.
setSopJourneyId
(
"xblc7"
);
customerInfo
.
setSopJourneyEnterTime
(
new
Date
());
customerInfo
.
setExternalUserId
(
"wm-ZewEAAA22dA72qtla54HxDPHBQfcg"
);
customerInfo
.
setUserId
(
"wo-ZewEAAA3Ew-zJPQGZHxsU48lRzw-w"
);
customerInfo
.
setSopJourneyStage
(
"潜客"
);
customerInfo
.
setSopJourneyStageEnterTime
(
DateUtils
.
parse
(
"2024-01-02"
));
resultData
.
put
(
"user1"
,
Arrays
.
asList
(
customerInfo
));
customerInfo
.
setSopJourneyStage
(
"意向客户"
);
customerInfo
.
setSopJourneyStageEnterTime
(
DateUtils
.
parse
(
"2024-01-04"
));
resultData
.
put
(
"user2"
,
Arrays
.
asList
(
customerInfo
));
SopStruct
sopStruct
=
sopService
.
loadSop
(
"xblc7"
);
SopInstNode
sopInstNode
=
sopStruct
.
getInstNodeMap
().
get
(
3
);
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