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
c4fb047a
Commit
c4fb047a
authored
May 13, 2022
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分厂数据查询问题;
parent
fd9a5857
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+1
-4
EntrustMapper.xml
src/main/resources/mapper/hmhj/EntrustMapper.xml
+13
-13
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
c4fb047a
...
...
@@ -390,7 +390,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
Entrust
entrust
=
dto
.
convert
(
Entrust
.
class
);
List
<
EntrustSampleDTO
>
sampleDTOList
=
dto
.
getSampleDTOList
();
RestAssert
.
fail
(
CollectionUtils
.
isEmpty
(
sampleDTOList
),
"委托样品为空"
);
Long
materialId
=
sampleDTOList
.
get
(
0
).
getMaterialId
();
final
Long
materialId
=
sampleDTOList
.
get
(
0
).
getMaterialId
();
// 赋值 物资ID
if
(
null
==
entrust
.
getMaterialId
()
&&
null
!=
materialId
)
{
entrust
.
setMaterialId
(
materialId
);
...
...
@@ -470,9 +470,6 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
entrust
.
setTotalFee
(
totalFee
);
//保存样品名称
entrust
.
setSampleName
(
sampleDTOList
.
get
(
0
).
getName
());
if
(
null
==
entrust
.
getMaterialId
())
{
entrust
.
setMaterialId
(
sampleDTOList
.
get
(
0
).
getMaterialId
());
}
saveEntrust
(
entrust
);
if
(
CollectionUtils
.
isNotEmpty
(
saveSampleList
))
{
entrustSampleService
.
saveBatch
(
saveSampleList
);
...
...
src/main/resources/mapper/hmhj/EntrustMapper.xml
View file @
c4fb047a
...
...
@@ -25,25 +25,25 @@
<if
test=
"null!=vo.sampleName"
>
AND e.sample_name like concat('%',#{vo.sampleName},'%')
</if>
<if
test=
"null
!=
vo.assignor"
>
<if
test=
"null
!=
vo.assignor"
>
AND e.assignor like concat('%',#{vo.assignor},'%')
</if>
<if
test=
"null
!=
vo.period"
>
<if
test=
"null
!=
vo.period"
>
AND (e.period is null or e.period = #{vo.period} )
</if>
<if
test=
"null != vo.isSelf and true == vo.isSelf"
>
AND (
e.uid = #{vo.uid} or
exists (
select 1 from business_staff s
where s.deleted = 0
and s.biz_id = e.material_id
and s.biz_type = 'REPORT_RECIPIENT'
and s.staff_id = #{vo.uid}
<if
test=
"null != vo.period"
>
AND (e.period is null or (e.period is not null and e.period = #{vo.period}))
</if>
)
e.uid = #{vo.uid} or exists (
select
1
from business_staff s
join material m
on m.id = s.biz_id and m.deleted = 0
where s.deleted = 0
and s.biz_type = 'REPORT_RECIPIENT'
and m.name = e.sample_name
and s.staff_id = #{vo.uid}
)
)
</if>
<if
test=
"null == vo.isSelf and null != vo.uid"
>
...
...
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