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
2c250661
Commit
2c250661
authored
Sep 02, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【ydlife】-【客户管理】-藏蕊的被保人的问题
parent
b2a121a0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
17 deletions
+23
-17
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
+4
-7
yd-api/src/main/java/com/yd/api/practitioner/service/PractitionerService.java
+2
-5
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+3
-3
yd-api/src/main/java/com/yd/api/practitioner/vo/practitionerCustomer/QueryCustomerInsuredListRequestVO.java
+9
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPolicyholderMapper.java
+2
-1
yd-api/src/main/resources/mapper/customer/AclPolicyholderMapper.xml
+3
-1
No files found.
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
View file @
2c250661
...
@@ -21,10 +21,7 @@ import com.yd.api.practitioner.vo.policy.PolicyListQueryRequestVO;
...
@@ -21,10 +21,7 @@ import com.yd.api.practitioner.vo.policy.PolicyListQueryRequestVO;
import
com.yd.api.practitioner.vo.policy.PolicyListQueryResponseVO
;
import
com.yd.api.practitioner.vo.policy.PolicyListQueryResponseVO
;
import
com.yd.api.practitioner.vo.policy.policyinfoquery.PolicyInfoQueryRequestVO
;
import
com.yd.api.practitioner.vo.policy.policyinfoquery.PolicyInfoQueryRequestVO
;
import
com.yd.api.practitioner.vo.policy.policyinfoquery.PolicyInfoQueryResponseVO
;
import
com.yd.api.practitioner.vo.policy.policyinfoquery.PolicyInfoQueryResponseVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryCustomerHolderListResponesVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.*
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryCustomerInsuredListResponesVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryPolicyListByHolderCustomerIdRequestVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryPolicyListByHolderCustomerIdResponesVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.recruit.*
;
import
com.yd.api.practitioner.vo.recruit.*
;
...
@@ -658,10 +655,10 @@ public class PractitionerController {
...
@@ -658,10 +655,10 @@ public class PractitionerController {
return
result
;
return
result
;
}
}
@RequestMapping
(
"/queryCustomerInsuredList
/{customerId}
"
)
@RequestMapping
(
"/queryCustomerInsuredList"
)
public
Object
queryCustomerInsuredList
(
@
PathVariable
Long
customerId
)
{
public
Object
queryCustomerInsuredList
(
@
RequestBody
QueryCustomerInsuredListRequestVO
requestVO
)
{
JsonResult
result
=
new
JsonResult
();
JsonResult
result
=
new
JsonResult
();
QueryCustomerInsuredListResponesVO
responseVO
=
practitionerService
.
queryCustomerInsuredList
(
customerId
);
QueryCustomerInsuredListResponesVO
responseVO
=
practitionerService
.
queryCustomerInsuredList
(
requestVO
);
result
.
addResult
(
responseVO
);
result
.
addResult
(
responseVO
);
result
.
setData
(
responseVO
);
result
.
setData
(
responseVO
);
return
result
;
return
result
;
...
...
yd-api/src/main/java/com/yd/api/practitioner/service/PractitionerService.java
View file @
2c250661
package
com
.
yd
.
api
.
practitioner
.
service
;
package
com
.
yd
.
api
.
practitioner
.
service
;
import
com.yd.api.practitioner.vo.login.CanSeeSalaryListResponseVO
;
import
com.yd.api.practitioner.vo.login.CanSeeSalaryListResponseVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryCustomerHolderListResponesVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.*
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryCustomerInsuredListResponesVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryPolicyListByHolderCustomerIdRequestVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryPolicyListByHolderCustomerIdResponesVO
;
import
com.yd.api.practitioner.vo.recruit.PotentialGoalsActionsUpdateResponseVO
;
import
com.yd.api.practitioner.vo.recruit.PotentialGoalsActionsUpdateResponseVO
;
import
com.yd.api.practitioner.vo.recruit.PotentialGoalsQueryResponseVO
;
import
com.yd.api.practitioner.vo.recruit.PotentialGoalsQueryResponseVO
;
import
com.yd.api.practitioner.vo.login.PractitionerLoginRequestVO
;
import
com.yd.api.practitioner.vo.login.PractitionerLoginRequestVO
;
...
@@ -239,7 +236,7 @@ public interface PractitionerService {
...
@@ -239,7 +236,7 @@ public interface PractitionerService {
QueryCustomerHolderListResponesVO
queryCustomerHolderList
(
Long
practitionerId
);
QueryCustomerHolderListResponesVO
queryCustomerHolderList
(
Long
practitionerId
);
QueryCustomerInsuredListResponesVO
queryCustomerInsuredList
(
Long
customerId
);
QueryCustomerInsuredListResponesVO
queryCustomerInsuredList
(
QueryCustomerInsuredListRequestVO
requestVO
);
QueryPolicyListByHolderCustomerIdResponesVO
queryPolicyListByHolderCustomerId
(
QueryPolicyListByHolderCustomerIdRequestVO
requestVO
);
QueryPolicyListByHolderCustomerIdResponesVO
queryPolicyListByHolderCustomerId
(
QueryPolicyListByHolderCustomerIdRequestVO
requestVO
);
}
}
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
2c250661
...
@@ -2116,11 +2116,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -2116,11 +2116,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
}
}
@Override
@Override
public
QueryCustomerInsuredListResponesVO
queryCustomerInsuredList
(
Long
customerId
)
{
public
QueryCustomerInsuredListResponesVO
queryCustomerInsuredList
(
QueryCustomerInsuredListRequestVO
requestVO
)
{
QueryCustomerInsuredListResponesVO
resp
=
new
QueryCustomerInsuredListResponesVO
();
QueryCustomerInsuredListResponesVO
resp
=
new
QueryCustomerInsuredListResponesVO
();
resp
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"820001"
)));
resp
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"820001"
)));
if
(
customerId
!=
null
)
{
if
(
requestVO
!=
null
)
{
List
<
CustomerHolder
>
list
=
aclPolicyholderMapper
.
queryInsuredListByHolderCustomerId
(
customerId
);
List
<
CustomerHolder
>
list
=
aclPolicyholderMapper
.
queryInsuredListByHolderCustomerId
(
requestVO
);
// 如果姓名,出生日期为空就去查ag_acl_policyholder表的记录
// 如果姓名,出生日期为空就去查ag_acl_policyholder表的记录
this
.
completeCustomerHolder
(
list
,
3
);
this
.
completeCustomerHolder
(
list
,
3
);
...
...
yd-api/src/main/java/com/yd/api/practitioner/vo/practitionerCustomer/QueryCustomerInsuredListRequestVO.java
0 → 100644
View file @
2c250661
package
com
.
yd
.
api
.
practitioner
.
vo
.
practitionerCustomer
;
import
lombok.Data
;
@Data
public
class
QueryCustomerInsuredListRequestVO
{
private
Long
practitionerCustomerId
;
private
Long
holderCustomerId
;
}
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPolicyholderMapper.java
View file @
2c250661
package
com
.
yd
.
dal
.
mapper
.
customer
;
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.api.practitioner.vo.practitionerCustomer.CustomerHolder
;
import
com.yd.api.practitioner.vo.practitionerCustomer.CustomerHolder
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryCustomerInsuredListRequestVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryPolicyListByHolderCustomerIdRequestVO
;
import
com.yd.api.practitioner.vo.practitionerCustomer.QueryPolicyListByHolderCustomerIdRequestVO
;
import
com.yd.dal.entity.customer.AclPolicyholder
;
import
com.yd.dal.entity.customer.AclPolicyholder
;
import
com.yd.dal.entity.order.CustomerPolicyInfo
;
import
com.yd.dal.entity.order.CustomerPolicyInfo
;
...
@@ -25,7 +26,7 @@ public interface AclPolicyholderMapper {
...
@@ -25,7 +26,7 @@ public interface AclPolicyholderMapper {
List
<
AclPolicyholder
>
findByOrderId
(
Long
orderId
);
List
<
AclPolicyholder
>
findByOrderId
(
Long
orderId
);
List
<
CustomerHolder
>
queryInsuredListByHolderCustomerId
(
Long
customerId
);
List
<
CustomerHolder
>
queryInsuredListByHolderCustomerId
(
QueryCustomerInsuredListRequestVO
requestVO
);
List
<
CustomerHolder
>
queryThisPractitiionerAllPolicyHolderList
(
List
<
Long
>
orderIdList
);
List
<
CustomerHolder
>
queryThisPractitiionerAllPolicyHolderList
(
List
<
Long
>
orderIdList
);
...
...
yd-api/src/main/resources/mapper/customer/AclPolicyholderMapper.xml
View file @
2c250661
...
@@ -968,10 +968,12 @@
...
@@ -968,10 +968,12 @@
(select h.name, h.id_type_id, h.id_no, max(h.id) id
(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
left join ag_acl_customer_fortune f on o.id = f.order_id and f.drop_option_code = 'S01'
where h.type = 3
where h.type = 3
and o.status = 3
and o.status = 3
and f.customer_id = #{practitionerCustomerId,jdbcType=BIGINT}
and h.order_id in
and h.order_id in
(select t1.order_id from ag_acl_policyholder t1 where t1.customer_id = #{
c
ustomerId,jdbcType=BIGINT} and t1.type = 2)
(select t1.order_id from ag_acl_policyholder t1 where t1.customer_id = #{
holderC
ustomerId,jdbcType=BIGINT} and t1.type = 2)
GROUP BY h.name, h.id_type_id, h.id_no
GROUP BY h.name, h.id_type_id, h.id_no
) t
) t
left join ag_acl_policyholder c on t.id = c.id
left join ag_acl_policyholder c on t.id = c.id
...
...
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