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
51bb80d9
Commit
51bb80d9
authored
May 13, 2022
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化任务分配历史查询速度;
parent
c4fb047a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
EntrustMapper.xml
src/main/resources/mapper/hmhj/EntrustMapper.xml
+9
-9
No files found.
src/main/resources/mapper/hmhj/EntrustMapper.xml
View file @
51bb80d9
...
...
@@ -160,13 +160,13 @@
</if>
<if
test=
"null != vo.itemStatus || null != vo.testerId"
>
AND exists (
select 1 from entrust_sample_item i where i.deleted = 0
<if
test=
"null != vo.itemStatus"
>
and i.entrust_sample_id = s.id
and i.status = #{vo.itemStatus}
</if>
<if
test=
"null != vo.testerId"
>
and i.entrust_sample_id = s.id
and i.tester_id = #{vo.testerId}
</if>
select 1 from entrust_sample_item i where i.deleted = 0 and i.entrust_sample_id = s.id
<if
test=
"null != vo.itemStatus"
>
and i.status = #{vo.itemStatus}
</if>
<if
test=
"null != vo.testerId"
>
and i.tester_id = #{vo.testerId}
</if>
)
</if>
GROUP BY s.company_id,s.entrust_id
...
...
@@ -226,8 +226,8 @@
<include
refid=
"basicCondition"
/>
<if
test=
"null != vo.itemStatusEnumList"
>
AND exists (
select 1 from entrust_sample
s,entrust_sample_item i where s.deleted = 0 and
i.deleted = 0
and
s.id = i.entrust_sample_id and e.id = s
.entrust_id
select 1 from entrust_sample
_item i where
i.deleted = 0
and
e.id = i
.entrust_id
and i.status IN
<foreach
collection=
"vo.itemStatusEnumList"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
...
...
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