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
b6d901fd
Commit
b6d901fd
authored
Jul 17, 2021
by
ghxdhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口适配分厂报告
parent
57bb7192
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
EntrustSampleItemServiceImpl.java
.../lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
+3
-1
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+3
-0
EntrustMapper.xml
src/main/resources/mapper/hmhj/EntrustMapper.xml
+3
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleItemServiceImpl.java
View file @
b6d901fd
...
@@ -510,7 +510,9 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
...
@@ -510,7 +510,9 @@ public class EntrustSampleItemServiceImpl extends BaseServiceImpl<EntrustSampleI
// itemVoList中的所有项目名 --> 通过检测项目名拿到对应的采集仪器项目名
// itemVoList中的所有项目名 --> 通过检测项目名拿到对应的采集仪器项目名
Set
<
String
>
itemNames
=
voList
.
stream
().
map
(
vo
->
vo
.
getName
()).
distinct
().
collect
(
Collectors
.
toSet
());
Set
<
String
>
itemNames
=
voList
.
stream
().
map
(
vo
->
vo
.
getName
()).
distinct
().
collect
(
Collectors
.
toSet
());
List
<
Qualification
>
qualifications
=
qualificationService
.
list
(
Condition
.
create
().
in
(
"name"
,
itemNames
));
List
<
Qualification
>
qualifications
=
qualificationService
.
list
(
Condition
.
create
().
in
(
"name"
,
itemNames
));
Map
<
String
,
String
>
itemNameMap
=
qualifications
.
stream
().
collect
(
Collectors
.
toMap
(
Qualification:
:
getName
,
Qualification:
:
getInstrumentItemName
));
Map
<
String
,
String
>
itemNameMap
=
qualifications
.
stream
()
.
filter
(
q
->
StringUtils
.
isNotEmpty
(
q
.
getInstrumentItemName
()))
.
collect
(
Collectors
.
toMap
(
Qualification:
:
getName
,
Qualification:
:
getInstrumentItemName
));
if
(
null
!=
template
.
getMoreItem
()
&&
1
==
template
.
getMoreItem
())
{
if
(
null
!=
template
.
getMoreItem
()
&&
1
==
template
.
getMoreItem
())
{
Set
<
Long
>
sampleIdsList
=
new
HashSet
<>();
Set
<
Long
>
sampleIdsList
=
new
HashSet
<>();
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
b6d901fd
...
@@ -799,6 +799,9 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
...
@@ -799,6 +799,9 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
}
}
entrust
.
setIdsList
(
ids
);
entrust
.
setIdsList
(
ids
);
if
(
null
!=
entrust
.
getIsSelf
()
&&
entrust
.
getIsSelf
())
{
entrust
.
setUid
(
LoginHelper
.
getAccount
().
getUserId
());
}
return
page
.
setRecords
(
baseMapper
.
selectVOList
(
page
,
entrust
));
return
page
.
setRecords
(
baseMapper
.
selectVOList
(
page
,
entrust
));
}
}
...
...
src/main/resources/mapper/hmhj/EntrustMapper.xml
View file @
b6d901fd
...
@@ -55,6 +55,9 @@
...
@@ -55,6 +55,9 @@
#{groupName}
#{groupName}
</foreach>
</foreach>
</if>
</if>
<if
test=
"null != vo.uid"
>
AND uid = #{vo.uid}
</if>
order by entrust_time desc
order by entrust_time desc
</select>
</select>
...
...
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