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
a79895ba
Commit
a79895ba
authored
Jun 29, 2023
by
lixiaolei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submit
parent
580745ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
BusinessInfoMapper.xml
...src/main/resources/mapper/business/BusinessInfoMapper.xml
+10
-5
No files found.
dsk-system/src/main/resources/mapper/business/BusinessInfoMapper.xml
View file @
a79895ba
...
@@ -101,16 +101,24 @@
...
@@ -101,16 +101,24 @@
LEFT JOIN business_user bu on bu.business_id = i.id
LEFT JOIN business_user bu on bu.business_id = i.id
LEFT JOIN sys_user u on u.user_id = f.user_id
LEFT JOIN sys_user u on u.user_id = f.user_id
<where>
<where>
<if
test=
"userId != null"
>
and bu.user_id = #{userId}
</if>
<if
test=
"projectType != null and projectType != ''"
>
<if
test=
"projectType != null and projectType != ''"
>
and i.project_type in
and i.project_type in
<foreach
collection=
"projectType"
item=
"projectType"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"projectType"
item=
"projectType"
open=
"("
separator=
","
close=
")"
>
#{projectType}
#{projectType}
</foreach>
</foreach>
</if>
</if>
<if
test=
"minAmount != null and minAmount != '' and maxAmount != minAmount"
>
<if
test=
"minAmount != null and minAmount != '' and m
inAmount != 0 and m
axAmount != minAmount"
>
and i.investment_amount
>
= #{minAmount}
and i.investment_amount
>
= #{minAmount}
</if>
</if>
<if
test=
"maxAmount != null and maxAmount != '' and maxAmount != minAmount"
>
<if
test=
"minAmount == 0 and maxAmount != minAmount"
>
and ((i.investment_amount
>
= #{minAmount}
and i.investment_amount
<
#{maxAmount})
or i.investment_amount is null)
</if>
<if
test=
"maxAmount != null and maxAmount != '' and maxAmount != minAmount and minAmount != 0"
>
and i.investment_amount
<
#{maxAmount}
and i.investment_amount
<
#{maxAmount}
</if>
</if>
<if
test=
"minAmount != null and minAmount != '' and maxAmount != null and maxAmount != '' and maxAmount == minAmount"
>
<if
test=
"minAmount != null and minAmount != '' and maxAmount != null and maxAmount != '' and maxAmount == minAmount"
>
...
@@ -128,9 +136,6 @@
...
@@ -128,9 +136,6 @@
<if
test=
"ownerCompany != null and ownerCompany != ''"
>
<if
test=
"ownerCompany != null and ownerCompany != ''"
>
or i.construction_unit like concat('%',#{ownerCompany},'%')
or i.construction_unit like concat('%',#{ownerCompany},'%')
</if>
</if>
<if
test=
"userId != null"
>
and bu.user_id = #{userId}
</if>
<if
test=
"others != null"
>
<if
test=
"others != null"
>
and bu.user_id != #{others} and i.is_private = 1
and bu.user_id != #{others} and i.is_private = 1
</if>
</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