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
c9a26c00
Commit
c9a26c00
authored
Jul 29, 2021
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
内容排序
parent
3cff24f2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
17 deletions
+23
-17
EntrustController.java
...cloud/service/lims/hmhj/controller/EntrustController.java
+1
-0
EntrustReportTemplateConfigServiceImpl.java
.../service/impl/EntrustReportTemplateConfigServiceImpl.java
+1
-1
EntrustReportTemplateServiceImpl.java
...s/hmhj/service/impl/EntrustReportTemplateServiceImpl.java
+2
-1
EntrustMapper.xml
src/main/resources/mapper/hmhj/EntrustMapper.xml
+19
-15
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/EntrustController.java
View file @
c9a26c00
...
...
@@ -537,6 +537,7 @@ public class EntrustController extends ServiceController {
));
// 获取当前用户分组
entrust
.
setGroupNameList
(
userInfoService
.
getCurGroupNameList
());
entrust
.
setTesterId
(
getAccount
().
getUserId
());
return
success
(
entrustService
.
pageEntrustByItemDataHis
(
getPage
(),
entrust
));
}
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustReportTemplateConfigServiceImpl.java
View file @
c9a26c00
...
...
@@ -26,7 +26,7 @@ public class EntrustReportTemplateConfigServiceImpl extends BaseServiceImpl<Entr
@Override
public
Page
<
EntrustReportTemplateConfig
>
page
(
Page
<
EntrustReportTemplateConfig
>
page
,
EntrustReportTemplateConfig
entrustReportTemplateConfig
)
{
Wrapper
wrapper
=
new
EntityWrapper
<>(
entrustReportTemplateConfig
);
wrapper
.
orderBy
(
"ctime"
,
true
);
return
this
.
page
(
page
,
wrapper
);
}
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustReportTemplateServiceImpl.java
View file @
c9a26c00
...
...
@@ -39,6 +39,7 @@ public class EntrustReportTemplateServiceImpl extends BaseServiceImpl<EntrustRep
if
(
StringUtils
.
isNotBlank
(
name
))
{
wrapper
.
like
(
"name"
,
name
);
}
wrapper
.
orderBy
(
"class_type"
).
orderBy
(
"name"
);
return
this
.
page
(
page
,
wrapper
);
}
...
...
@@ -71,7 +72,7 @@ public class EntrustReportTemplateServiceImpl extends BaseServiceImpl<EntrustRep
@Override
public
boolean
updateTemplateById
(
EntrustReportTemplate
entrustReportTemplate
,
Account
account
)
{
RestAssert
.
fail
(
null
==
entrustReportTemplate
.
getId
(),
"报告模板ID为空"
);
RestAssert
.
fail
(
null
==
entrustReportTemplate
.
getId
(),
"报告模板ID为空"
);
entrustReportTemplate
.
setLid
(
account
.
getUserId
()).
setLtime
(
new
Date
());
return
baseMapper
.
updateTemplateById
(
entrustReportTemplate
);
}
...
...
src/main/resources/mapper/hmhj/EntrustMapper.xml
View file @
c9a26c00
...
...
@@ -62,8 +62,8 @@
and exists (
select 1 from entrust_sample s
join entrust_sample_prepare p on p.entrust_sample_id = s.id
where s.deleted = 0 and p.deleted = 0 and
p.entrust_sample_id is not null
and
s.entrust_id = e.id
and p.status = #{vo.prepareStatus}
where s.deleted = 0 and p.deleted = 0 and
s.entrust_id = e.id
and
p.entrust_sample_id is not null
and p.status = #{vo.prepareStatus}
)
</if>
<if
test=
"null != vo.prepareNotStatus"
>
...
...
@@ -104,15 +104,19 @@
<if
test=
"null != vo.itemStatus"
>
AND exists (
select 1 from entrust_sample_item i join entrust_sample s on i.entrust_sample_id = s.id
where s.deleted = 0 and i.deleted = 0 and s.entrust_id = e.id and i.status = #{vo.itemStatus}
select 1 from entrust_sample_item i
join entrust_sample s on i.entrust_sample_id = s.id
where s.deleted = 0 and i.deleted = 0
and s.entrust_id = e.id and i.status = #{vo.itemStatus}
)
</if>
<if
test=
"null!=vo.testerId"
>
and exists (
select 1 from entrust_sample_item i join entrust_sample s on i.entrust_sample_id = s.id
where s.deleted = 0 and i.deleted = 0 and s.entrust_id = e.id and i.tester_id = #{vo.testerId}
select 1 from entrust_sample_item i
join entrust_sample s on i.entrust_sample_id = s.id
where s.deleted = 0 and i.deleted = 0
and s.entrust_id = e.id and i.tester_id = #{vo.testerId}
)
</if>
...
...
@@ -175,17 +179,17 @@
<if
test=
"null!=vo.itemStatus"
>
and exists (
select 1 from entrust_sample es
,entrust_sample_item esi
where es.id = esi.entrust_sample_
id
and es.deleted = 0 and esi.deleted = 0
select 1 from entrust_sample es
join entrust_sample_item esi on esi.entrust_sample_id = es.
id
where es.deleted = 0 and esi.deleted = 0 and es.entrust_id = e.id
and esi.status = #{vo.itemStatus}
)
</if>
<if
test=
"null!=vo.itemStatusEnumList"
>
and exists (
select 1 from entrust_sample es
,entrust_sample_item esi
where es.id = esi.entrust_sample_
id
and es.deleted = 0 and esi.deleted = 0
select 1 from entrust_sample es
join entrust_sample_item esi on esi.entrust_sample_id = es.
id
where es.deleted = 0 and esi.deleted = 0 and es.entrust_id = e.id
and esi.status IN
<foreach
collection=
"vo.itemStatusEnumList"
index=
"index"
item=
"status"
open=
"("
separator=
","
close=
")"
>
#{status}
...
...
@@ -194,9 +198,9 @@
</if>
<if
test=
"null!=vo.testerId"
>
and exists (
select 1 from entrust_sample es
,entrust_sample_item esi
where es.id = esi.entrust_sample_
id
and es.deleted = 0 and esi.deleted = 0
select 1 from entrust_sample es
join entrust_sample_item esi on esi.entrust_sample_id = es.
id
where es.deleted = 0 and esi.deleted = 0 and es.entrust_id = e.id
and esi.tester_id = #{vo.testerId}
)
</if>
...
...
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