Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
b7ca6282
Commit
b7ca6282
authored
Jul 20, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql
parent
48493079
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
TabHaobanHmQrcodeMapper.xml
.../src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
+11
-18
No files found.
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
View file @
b7ca6282
...
...
@@ -329,33 +329,26 @@
<select
id=
"listHmIdForIndex"
resultType=
"String"
parameterType=
"com.gic.haoban.manage.api.dto.qdto.hm.HmQrcodeListQDTO"
>
select distinct(a.hm_id)
from tab_haoban_hm_qrcode a left join tab_haoban_hm_clerk_relation b on a.hm_id = b.hm_id and b.status = 1
<if
test=
"null != clerkSelect and '' != clerkSelect"
>
and b.clerk_id = #{clerkSelect}
</if>
<if
test=
"null != storeSelect and '' != storeSelect"
>
and b.store_id = #{storeSelect}
</if>
<if
test=
"storeId != null and storeId.size > 0"
>
and b.store_id IN
<foreach
collection=
"storeId"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</if>
where a.enterprise_id = #{enterpriseId} and a.status_flag != 0
<if
test=
"null != hmSelect and '' != hmSelect "
>
and (a.hm_code=#{hmSelect} or a.name like '%${hmSelect}%' or a.creator_name like '%${hmSelect}%' )
</if>
<if
test=
"null != clerkSelect and '' != clerkSelect"
>
and
a.clerk_id = #{clerkSelect}
and
( a.clerk_id = #{clerkSelect} or b.clerk_id = #{clerkSelect} )
</if>
<if
test=
"null != storeSelect and '' != storeSelect"
>
and
a.store_id = #{storeSelect}
and
( a.store_id = #{storeSelect} or b.store_id = #{storeSelect} )
</if>
<if
test=
"storeId != null and storeId.size > 0"
>
and a.store_id IN
<foreach
collection=
"storeId"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
and ( a.store_id IN
<foreach
collection=
"storeId"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
or b.store_id IN
<foreach
collection=
"storeId"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
)
</if>
<if
test=
"null != statusFlagInt"
>
and a.status_flag = #{statusFlagInt}
...
...
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