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
af972fd1
Commit
af972fd1
authored
Aug 27, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【ydlife】-【客户管理】-线上录单投被保人customerId相同
parent
ddc65be9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
yd-api/src/main/resources/mapper/customer/AclPolicyholderMapper.xml
+4
-4
No files found.
yd-api/src/main/resources/mapper/customer/AclPolicyholderMapper.xml
View file @
af972fd1
...
@@ -963,18 +963,18 @@
...
@@ -963,18 +963,18 @@
c.mobile_no ,
c.mobile_no ,
(case c.gender when 1 then '男' when 2 then '女' else c.gender END) gender,
(case c.gender when 1 then '男' when 2 then '女' else c.gender END) gender,
c.birth_date,
c.birth_date,
t
.relation_type
c
.relation_type
from
from
(select
h.customer_id, group_concat(distinct h.relation_type ORDER BY h.relation_type) relation_type
(select
h.name, h.id_type_id, h.id_no, max(h.id) id
from ag_acl_policyholder h
from ag_acl_policyholder h
left join ag_po_order o on o.id = h.order_id
left join ag_po_order o on o.id = h.order_id
where h.type = 3
where h.type = 3
and o.status = 3
and o.status = 3
and h.order_id in
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)
(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
GROUP BY h.
name, h.id_type_id, h.id_no
) t
) t
left join ag_acl_
customer c on t.customer_
id = c.id
left join ag_acl_
policyholder c on t.
id = c.id
</select>
</select>
<sql
id=
"customerPolicyInfoFields"
>
<sql
id=
"customerPolicyInfoFields"
>
...
...
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