Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
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
Administrator
dsk-cr20g
Commits
d7678b15
Commit
d7678b15
authored
Apr 11, 2024
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
8e8fb36d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
8 deletions
+30
-8
CustomerMapper.xml
...-biz-api/src/main/resources/mapper/biz/CustomerMapper.xml
+30
-8
No files found.
dsk-module/dsk-biz-api/src/main/resources/mapper/biz/CustomerMapper.xml
View file @
d7678b15
...
@@ -29,24 +29,46 @@
...
@@ -29,24 +29,46 @@
where ctu.user_id = #{dto.userId} and ctu.status = #{dto.status}
where ctu.user_id = #{dto.userId} and ctu.status = #{dto.status}
<if
test=
"dto.companyName != null and dto.companyName != '' "
>
and ct.company_name like concat('%',#{dto.companyName},'%')
</if>
<if
test=
"dto.companyName != null and dto.companyName != '' "
>
and ct.company_name like concat('%',#{dto.companyName},'%')
</if>
<if
test=
"dto.isOn != null "
>
and ct.is_on = #{dto.isOn}
</if>
<if
test=
"dto.isOn != null "
>
and ct.is_on = #{dto.isOn}
</if>
<if
test=
"dto.provinceIds != null and dto.provinceIds.size > 0 "
>
and ct.province_id in
<if
test=
"dto.provinceIds != null "
>
and (ct.province_id in
<foreach
collection=
"dto.provinceIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"dto.provinceIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
<if
test=
"dto.cityIds != null "
>
or ct.city_id in
<foreach
collection=
"dto.cityIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"dto.districtIds != null"
>
or ct.district_id in
<foreach
collection=
"dto.districtIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
)
</if>
</if>
<if
test=
"dto.cityIds != null and dto.cityIds.size > 0 "
>
<if
test=
"dto.provinceIds == null and dto.cityIds != null "
>
and ct.city_id in
and (ct.city_id in
<foreach
collection=
"dto.cityIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"dto.cityIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
<if
test=
"dto.districtIds != null"
>
or ct.district_id in
<foreach
collection=
"dto.districtIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
)
</if>
</if>
<if
test=
"dto.
districtIds != null and dto.districtIds.size > 0
"
>
<if
test=
"dto.
provinceIds == null and dto.cityIds == null and dto.districtIds != null
"
>
and ct.district_id in
and ct.district_id in
<foreach
collection=
"dto.districtIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"dto.districtIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"dto.companyNatures != null and dto.companyNatures.size > 0 "
>
<if
test=
"dto.companyNatures != null and dto.companyNatures.size > 0 "
>
and ct.company_nature in
and ct.company_nature in
<foreach
collection=
"dto.companyNatures"
item=
"item"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"dto.companyNatures"
item=
"item"
open=
"("
separator=
","
close=
")"
>
...
...
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