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
5a838ef9
Commit
5a838ef9
authored
Jul 25, 2021
by
ghxdhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报告中显示样品名称
parent
8784e976
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
EntrustSampleServiceImpl.java
...vice/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
+2
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
View file @
5a838ef9
...
...
@@ -959,6 +959,8 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
mapReplace
.
put
(
"#{sampleNum}"
,
countByEntrustId
(
entrust
.
getId
())
+
""
);
List
<
EntrustSample
>
list
=
sampleList
.
stream
().
filter
(
s
->
StringUtils
.
isNotEmpty
(
s
.
getSampleFrom
())).
collect
(
Collectors
.
toList
());
mapReplace
.
put
(
"#{sampleFrom}"
,
list
.
size
()
>
0
?
list
.
get
(
0
).
getSampleFrom
()
:
" - "
);
list
=
sampleList
.
stream
().
filter
(
s
->
StringUtils
.
isNotEmpty
(
s
.
getName
())).
collect
(
Collectors
.
toList
());
mapReplace
.
put
(
"#{sampleName}"
,
list
.
size
()
>
0
?
list
.
get
(
0
).
getName
()
:
" - "
);
HSSFWorkbookUtil
.
replaceModel
(
mapReplace
,
xssfWorkbook
,
0
);
XSSFSheet
sheetOne
=
xssfWorkbook
.
getSheetAt
(
0
);
String
sheetName
=
sheetOne
.
getSheetName
();
...
...
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