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
6c7d3932
Commit
6c7d3932
authored
Jul 08, 2021
by
ghxdhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检测委托书导出修改
parent
41ccb500
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+10
-4
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
6c7d3932
...
@@ -1104,13 +1104,19 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
...
@@ -1104,13 +1104,19 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
List
<
EntrustSample
>
samples
=
entrustSamples
.
stream
().
List
<
EntrustSample
>
samples
=
entrustSamples
.
stream
().
filter
(
s
->
entrust
.
getId
().
equals
(
s
.
getEntrustId
())).
filter
(
s
->
entrust
.
getId
().
equals
(
s
.
getEntrustId
())).
collect
(
Collectors
.
toList
());
collect
(
Collectors
.
toList
());
/* 项目 */
/* 该样品对应的项目 */
Set
<
String
>
itemNames
=
items
.
stream
().
map
(
i
->
i
.
getName
()).
collect
(
Collectors
.
toSet
());
List
<
EntrustSampleItem
>
currItems
=
items
.
stream
()
Set
<
String
>
standards
=
items
.
stream
()
.
filter
(
i
->
samples
.
get
(
0
).
getId
().
equals
(
i
.
getEntrustSampleId
()))
.
collect
(
Collectors
.
toList
());
/* 项目名 */
Set
<
String
>
itemNames
=
currItems
.
stream
().
filter
(
i
->
StringUtils
.
isNotEmpty
(
i
.
getName
()))
.
map
(
i
->
i
.
getName
()).
collect
(
Collectors
.
toSet
());
/* 执行标准 */
Set
<
String
>
standards
=
currItems
.
stream
()
.
filter
(
i
->
StringUtils
.
isNotEmpty
(
i
.
getStandard
()))
.
filter
(
i
->
StringUtils
.
isNotEmpty
(
i
.
getStandard
()))
.
map
(
i
->
i
.
getStandard
()).
collect
(
Collectors
.
toSet
());
.
map
(
i
->
i
.
getStandard
()).
collect
(
Collectors
.
toSet
());
dataMap
.
put
(
"entrust"
,
entrust
);
dataMap
.
put
(
"entrust"
,
entrust
);
/* 委托时间和样品
收受
时间 */
/* 委托时间和样品
接收
时间 */
dataMap
.
put
(
"entrustTimeStr"
,
StringHandleUtils
.
parse
(
DateUtils
.
toYearMonthDay
(
entrust
.
getEntrustTime
()),
gangCode
));
dataMap
.
put
(
"entrustTimeStr"
,
StringHandleUtils
.
parse
(
DateUtils
.
toYearMonthDay
(
entrust
.
getEntrustTime
()),
gangCode
));
dataMap
.
put
(
"entrustTimeStrCn"
,
StringHandleUtils
.
parse
(
DateUtils
.
toYearMonthDayChinese
(
entrust
.
getEntrustTime
()),
gangCode
));
dataMap
.
put
(
"entrustTimeStrCn"
,
StringHandleUtils
.
parse
(
DateUtils
.
toYearMonthDayChinese
(
entrust
.
getEntrustTime
()),
gangCode
));
dataMap
.
put
(
"entrustTimeStrPoint"
,
StringHandleUtils
.
parse
(
DateUtils
.
toYearMonthDayPoint
(
entrust
.
getEntrustTime
()),
gangCode
));
dataMap
.
put
(
"entrustTimeStrPoint"
,
StringHandleUtils
.
parse
(
DateUtils
.
toYearMonthDayPoint
(
entrust
.
getEntrustTime
()),
gangCode
));
...
...
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