Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-service-hmhj
Commits
503c2040
Commit
503c2040
authored
Jul 23, 2021
by
ghxdhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原始记录添加空白标样和配置空白开始行冲突提示
parent
81eda871
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
EntrustSampleItemServiceImpl.java
.../lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
+6
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
View file @
503c2040
...
@@ -509,6 +509,12 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
...
@@ -509,6 +509,12 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
if
(
CollectionUtils
.
isEmpty
(
voList
))
{
if
(
CollectionUtils
.
isEmpty
(
voList
))
{
return
null
;
return
null
;
}
}
// 过滤空白样
List
<
EntrustSampleItemVO
>
blank
=
voList
.
stream
().
filter
(
vo
->
vo
.
getSampleCode
().
contains
(
"空白"
)
||
vo
.
getSampleName
().
contains
(
"空白"
)).
collect
(
Collectors
.
toList
());
// 手动插入空白样和配置了空白开始行冲突
if
(
null
!=
template
.
getBlankBeginNum
()
&&
blank
.
size
()
>
0
)
{
RestAssert
.
fail
(
"所选原始记录模板中已配置空白开始行,请删除空白标样!"
);
}
voList
=
voList
.
stream
().
sorted
(
Comparator
.
comparing
(
item
->
item
.
getOrderBy
())).
collect
(
Collectors
.
toList
());
voList
=
voList
.
stream
().
sorted
(
Comparator
.
comparing
(
item
->
item
.
getOrderBy
())).
collect
(
Collectors
.
toList
());
Entrust
entrust
=
entrustService
.
getById
(
voList
.
get
(
0
).
getEntrustId
());
Entrust
entrust
=
entrustService
.
getById
(
voList
.
get
(
0
).
getEntrustId
());
InputStream
io
=
ossClient
.
download
(
template
.
getObjectKey
());
InputStream
io
=
ossClient
.
download
(
template
.
getObjectKey
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment