Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
ddc65be9
Commit
ddc65be9
authored
Aug 26, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【ydlife】-【客户管理】-7
parent
c5ba57fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
yd-api/src/main/resources/mapper/customer/AclPolicyholderMapper.xml
+9
-4
No files found.
yd-api/src/main/resources/mapper/customer/AclPolicyholderMapper.xml
View file @
ddc65be9
...
...
@@ -945,7 +945,9 @@
from
(select distinct t.customer_id
from ag_acl_policyholder t
left join ag_po_order o on o.id = t.order_id
where 1 = 1
and o.status = 3
and t.type = 2
and t.order_id in
<foreach
close=
")"
collection=
"list"
index=
"index"
item=
"item"
open=
"("
separator=
","
>
...
...
@@ -965,7 +967,9 @@
from
(select h.customer_id, group_concat(distinct h.relation_type ORDER BY h.relation_type) relation_type
from ag_acl_policyholder h
left join ag_po_order o on o.id = h.order_id
where h.type = 3
and o.status = 3
and h.order_id in
(select t1.order_id from ag_acl_policyholder t1 where t1.customer_id = #{customerId,jdbcType=BIGINT} and t1.type = 2)
GROUP BY h.customer_id
...
...
@@ -985,7 +989,7 @@
o.order_price as orderPrice,
o.plan_id as planId,
o.product_id as productId ,
IF(o.effective_
start_date
<
= NOW() and o.effective_
end_date
>
= NOW(),'有效','无效') isValid,
IF(o.effective_end_date
>
= NOW(),'有效','无效') isValid,
a.name planName,
b.name productName
</sql>
...
...
@@ -1023,10 +1027,11 @@
select h.customer_id id,
h.name,
h.mobile_no ,
IF(h.gender = 1,'男','女') gender,
h.birth_date
(case h.gender when 1 then '男' when 2 then '女' else h.gender END) gender,
h.birth_date,
h.relation_type
from ag_acl_policyholder h
where h.name is not null and h.birth_date is not null
where h.name is not null and h.birth_date is not null
and h.relation_type is not null
<if
test=
"customerId != null"
>
and h.customer_id = #{customerId,jdbcType=BIGINT}
</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