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 0ba50bbc
authored
Oct 12, 2023
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复由于SopInstNode的dailyCount默认值为0导致的查询实例详情接口没返回节点问题
1 parent
9d1e670f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
View file @
0ba50bb
...
@@ -33,6 +33,8 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -33,6 +33,8 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.util.Sqls
;
import
java.io.ByteArrayOutputStream
;
import
java.io.ByteArrayOutputStream
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
...
@@ -160,14 +162,12 @@ public class SopInstService {
...
@@ -160,14 +162,12 @@ public class SopInstService {
SopInstDTO
sopInstDTO
=
SopInstConverter
.
INSTANCE
.
do2dto
(
sopInst
);
SopInstDTO
sopInstDTO
=
SopInstConverter
.
INSTANCE
.
do2dto
(
sopInst
);
String
instId
=
sopInstDTO
.
getInstId
();
String
instId
=
sopInstDTO
.
getInstId
();
SopInstNode
nodeQuery
=
new
SopInstNode
();
List
<
SopInstNode
>
nodes
=
sopInstNodeMapper
nodeQuery
.
setInstId
(
instId
);
.
selectByExample
(
Example
.
builder
(
SopInstNode
.
class
).
where
(
Sqls
.
custom
().
andEqualTo
(
"instId"
,
instId
)).
build
());
List
<
SopInstNode
>
nodes
=
sopInstNodeMapper
.
select
(
nodeQuery
);
sopInstDTO
.
setNodes
(
nodes
);
sopInstDTO
.
setNodes
(
nodes
);
SopInstLink
linkQuery
=
new
SopInstLink
();
List
<
SopInstLink
>
links
=
sopInstLinkMapper
linkQuery
.
setInstId
(
instId
);
.
selectByExample
(
Example
.
builder
(
SopInstLink
.
class
).
where
(
Sqls
.
custom
().
andEqualTo
(
"instId"
,
instId
)).
build
());
List
<
SopInstLink
>
links
=
sopInstLinkMapper
.
select
(
linkQuery
);
sopInstDTO
.
setLinks
(
links
);
sopInstDTO
.
setLinks
(
links
);
return
sopInstDTO
;
return
sopInstDTO
;
}
}
...
...
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