Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
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
bltdc
dc-cost-system
Commits
bf1f053d
Commit
bf1f053d
authored
Jan 05, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3b5a86d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
27 deletions
+31
-27
CostListSearchMapper.xml
...t-core/src/main/resources/mapper/CostListSearchMapper.xml
+31
-27
No files found.
bailuntec-cost-core/src/main/resources/mapper/CostListSearchMapper.xml
View file @
bf1f053d
...
@@ -4,63 +4,67 @@
...
@@ -4,63 +4,67 @@
<mapper
namespace=
"com.blt.other.module.cost.dao.CostListSearchDao"
>
<mapper
namespace=
"com.blt.other.module.cost.dao.CostListSearchDao"
>
<select
id=
"selectByKey"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
<select
id=
"selectByKey"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
SELECT
SELECT
*
t1.*,
group_concat(distinct t2.username) as cost_current_reviewer
FROM
FROM
cost
cost t1
left join cost_current_reviewer t2 on t1.cost_no = t2.cost_no
WHERE false
WHERE false
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or cost_plan_no = #{key}
or
t1.
cost_plan_no = #{key}
</if>
</if>
</foreach>
</foreach>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or cost_no LIKE CONCAT('%',#{key},'%')
or
t1.
cost_no LIKE CONCAT('%',#{key},'%')
</if>
</if>
</foreach>
</foreach>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or type_name LIKE CONCAT('%',#{key},'%')
or t
1.t
ype_name LIKE CONCAT('%',#{key},'%')
</if>
</if>
</foreach>
</foreach>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or company_name LIKE CONCAT('%',#{key},'%')
or
t1.
company_name LIKE CONCAT('%',#{key},'%')
</if>
</if>
</foreach>
</foreach>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<foreach
collection=
"keys"
item=
"key"
index=
"index"
>
<if
test=
"key != null and key != '' "
>
<if
test=
"key != null and key != '' "
>
or bank_card_user LIKE CONCAT('%',#{key},'%')
or
t1.
bank_card_user LIKE CONCAT('%',#{key},'%')
</if>
</if>
</foreach>
</foreach>
</select>
</select>
<select
id=
"selectByKeys"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
<select
id=
"selectByKeys"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
SELECT
SELECT
*
t1.*,
group_concat(distinct t2.username) as cost_current_reviewer
FROM
FROM
cost
cost t1
left join cost_current_reviewer t2 on t1.cost_no = t2.cost_no
WHERE
WHERE
id >= 0
t1.
id >= 0
<if
test=
" params.keys.costForm!=null and params.keys.costForm != ''"
>
and cost_form= #{params.keys.costForm}
</if>
<if
test=
" params.keys.costForm!=null and params.keys.costForm != ''"
>
and
t1.
cost_form= #{params.keys.costForm}
</if>
<if
test=
" params.keys.companyNo!=null and params.keys.companyNo != ''"
>
and company_no=#{params.keys.companyNo}
</if>
<if
test=
" params.keys.companyNo!=null and params.keys.companyNo != ''"
>
and
t1.
company_no=#{params.keys.companyNo}
</if>
<if
test=
" params.keys.createUsercode!=null and params.keys.createUsercode != ''"
>
and create_usercode=#{params.keys.createUsercode}
</if>
<if
test=
" params.keys.createUsercode!=null and params.keys.createUsercode != ''"
>
and
t1.
create_usercode=#{params.keys.createUsercode}
</if>
<if
test=
" params.keys.costStatus!=null and params.keys.costStatus != '' and params.keys.costStatus != 10"
>
and cost_status=#{params.keys.costStatus}
</if>
<if
test=
" params.keys.costStatus!=null and params.keys.costStatus != '' and params.keys.costStatus != 10"
>
and
t1.
cost_status=#{params.keys.costStatus}
</if>
<if
test=
" params.keys.costStatus!=null and params.keys.costStatus != '' and params.keys.costStatus == 10"
>
and cost_status=0
</if>
<if
test=
" params.keys.costStatus!=null and params.keys.costStatus != '' and params.keys.costStatus == 10"
>
and
t1.
cost_status=0
</if>
<if
test=
" params.keys.lendStatus!=null and params.keys.lendStatus != ''"
>
and lend_status=#{params.keys.lendStatus}
</if>
<if
test=
" params.keys.lendStatus!=null and params.keys.lendStatus != ''"
>
and
t1.
lend_status=#{params.keys.lendStatus}
</if>
<if
test=
" params.keys.isTax!=null and params.keys.isTax == 0"
>
and is_tax=0
</if>
<if
test=
" params.keys.isTax!=null and params.keys.isTax == 0"
>
and
t1.
is_tax=0
</if>
<if
test=
" params.keys.isTax!=null and params.keys.isTax == 1"
>
and is_tax=1
</if>
<if
test=
" params.keys.isTax!=null and params.keys.isTax == 1"
>
and
t1.
is_tax=1
</if>
<if
test=
" params.keys.isLend!=null and params.keys.isLend == 1"
>
and is_lend=1
</if>
<if
test=
" params.keys.isLend!=null and params.keys.isLend == 1"
>
and
t1.
is_lend=1
</if>
<if
test=
" params.keys.isLend!=null and params.keys.isLend == 2"
>
and is_lend=2
</if>
<if
test=
" params.keys.isLend!=null and params.keys.isLend == 2"
>
and
t1.
is_lend=2
</if>
<if
test=
" params.keys.beginTime != null"
>
AND create_time
<![CDATA[>=]]>
#{params.keys.beginTime}
</if>
<if
test=
" params.keys.beginTime != null"
>
AND
t1.
create_time
<![CDATA[>=]]>
#{params.keys.beginTime}
</if>
<if
test=
" params.keys.endTime != null"
>
AND create_time
<![CDATA[<=]]>
#{params.keys.endTime}
</if>
<if
test=
" params.keys.endTime != null"
>
AND
t1.
create_time
<![CDATA[<=]]>
#{params.keys.endTime}
</if>
<if
test=
" params.keys.beginPayTime != null"
>
AND pay_time
<![CDATA[>=]]>
#{params.keys.beginPayTime}
</if>
<if
test=
" params.keys.beginPayTime != null"
>
AND
t1.
pay_time
<![CDATA[>=]]>
#{params.keys.beginPayTime}
</if>
<if
test=
" params.keys.endPayTime != null"
>
AND pay_time
<![CDATA[<=]]>
#{params.keys.endPayTime}
</if>
<if
test=
" params.keys.endPayTime != null"
>
AND
t1.
pay_time
<![CDATA[<=]]>
#{params.keys.endPayTime}
</if>
<if
test=
" params.keys.linkCost!=null and params.keys.linkCost != ''"
>
and sup_cost_no=#{params.keys.linkCost}
</if>
<if
test=
" params.keys.linkCost!=null and params.keys.linkCost != ''"
>
and
t1.
sup_cost_no=#{params.keys.linkCost}
</if>
<if
test=
" params.keys.projectTypes!=null and params.keys.projectTypes != ''"
>
and project_type=#{params.keys.projectTypes}
</if>
<if
test=
" params.keys.projectTypes!=null and params.keys.projectTypes != ''"
>
and
t1.
project_type=#{params.keys.projectTypes}
</if>
ORDER BY
ORDER BY
id DESC
t1.
id DESC
</select>
</select>
<select
id=
"selectLinkList"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
<select
id=
"selectLinkList"
resultType=
"com.blt.other.module.cost.model.CostDomain"
>
...
...
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