Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
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
xingmin
yd-csf
Commits
a5f7258e
Commit
a5f7258e
authored
Mar 02, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新单跟进同步预约信息6
parent
444adf7b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
yd-csf-service/src/main/java/com/yd/csf/service/dto/PolicyFollowDto.java
+3
-0
yd-csf-service/src/main/java/com/yd/csf/service/model/PolicyFollow.java
+5
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/PolicyFollowServiceImpl.java
+18
-0
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/dto/PolicyFollowDto.java
View file @
a5f7258e
...
@@ -152,6 +152,9 @@ public class PolicyFollowDto implements Serializable {
...
@@ -152,6 +152,9 @@ public class PolicyFollowDto implements Serializable {
@Schema
(
description
=
"对账公司"
)
@Schema
(
description
=
"对账公司"
)
private
String
reconciliationCompany
;
private
String
reconciliationCompany
;
@Schema
(
description
=
"对账公司编码"
)
private
String
reconciliationCode
;
@Schema
(
description
=
"对账公司业务id"
)
@Schema
(
description
=
"对账公司业务id"
)
private
String
reconciliationCompanyBizId
;
private
String
reconciliationCompanyBizId
;
...
...
yd-csf-service/src/main/java/com/yd/csf/service/model/PolicyFollow.java
View file @
a5f7258e
...
@@ -241,6 +241,11 @@ public class PolicyFollow implements Serializable {
...
@@ -241,6 +241,11 @@ public class PolicyFollow implements Serializable {
private
String
reconciliationCompany
;
private
String
reconciliationCompany
;
/**
/**
* 对账公司编码
*/
private
String
reconciliationCompanyCode
;
/**
* 对账公司业务id
* 对账公司业务id
*/
*/
private
String
reconciliationCompanyBizId
;
private
String
reconciliationCompanyBizId
;
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/PolicyFollowServiceImpl.java
View file @
a5f7258e
...
@@ -89,6 +89,8 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
...
@@ -89,6 +89,8 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
private
FnaService
fnaService
;
private
FnaService
fnaService
;
@Resource
@Resource
private
ApiInsuranceReconciliationCompanyFeignClient
apiInsuranceReconciliationCompanyFeignClient
;
private
ApiInsuranceReconciliationCompanyFeignClient
apiInsuranceReconciliationCompanyFeignClient
;
@Resource
private
CustomerService
customerService
;
@Override
@Override
...
@@ -199,6 +201,9 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
...
@@ -199,6 +201,9 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
// 复制属性,排除系统字段
// 复制属性,排除系统字段
BeanUtils
.
copyProperties
(
policyFollowDto
,
policyFollow
,
"id"
,
"policyBizId"
,
"brokerList"
);
BeanUtils
.
copyProperties
(
policyFollowDto
,
policyFollow
,
"id"
,
"policyBizId"
,
"brokerList"
);
if
(
StringUtils
.
isNotBlank
(
policyFollowDto
.
getReconciliationCode
()))
{
policyFollow
.
setReconciliationCompanyCode
(
policyFollowDto
.
getReconciliationCode
());
}
// 检查保单号是否从空变为有值
// 检查保单号是否从空变为有值
String
oldPolicyNo
=
policyFollow
.
getPolicyNo
();
String
oldPolicyNo
=
policyFollow
.
getPolicyNo
();
...
@@ -493,6 +498,7 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
...
@@ -493,6 +498,7 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
policy
.
setPaymentTerm
(
policyFollow
.
getIssueNumber
());
policy
.
setPaymentTerm
(
policyFollow
.
getIssueNumber
());
policy
.
setUnderwritingDate
(
changePolicyFollowStatusRequest
.
getUnderwritingDate
());
policy
.
setUnderwritingDate
(
changePolicyFollowStatusRequest
.
getUnderwritingDate
());
policy
.
setEffectiveDate
(
changePolicyFollowStatusRequest
.
getEffectiveDate
());
policy
.
setEffectiveDate
(
changePolicyFollowStatusRequest
.
getEffectiveDate
());
policy
.
setPolicyHolderAge
(
calculatePolicyHolderAge
(
policyFollow
.
getCustomerBizId
()));
if
(
ObjectUtils
.
isEmpty
(
policy
.
getInsuranceCompany
())
||
ObjectUtils
.
isEmpty
(
policy
.
getReconciliationCompanyBizId
()))
{
if
(
ObjectUtils
.
isEmpty
(
policy
.
getInsuranceCompany
())
||
ObjectUtils
.
isEmpty
(
policy
.
getReconciliationCompanyBizId
()))
{
// 获取保单产品信息,填充对账公司相关字段
// 获取保单产品信息,填充对账公司相关字段
...
@@ -541,6 +547,18 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
...
@@ -541,6 +547,18 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
return
true
;
return
true
;
}
}
private
Integer
calculatePolicyHolderAge
(
String
customerBizId
)
{
Customer
customer
=
customerService
.
getByCustomerBizId
(
customerBizId
);
if
(
customer
==
null
)
{
throw
new
BusinessException
(
"客户不存在"
);
}
if
(
customer
.
getBirthday
()
==
null
)
{
throw
new
BusinessException
(
"客户生日不能为空"
);
}
// 根据生日计算年龄
return
DateUtil
.
ageOfNow
(
customer
.
getBirthday
());
}
/**
/**
* 调用对账公司 feignclient,查询对账公司编码
* 调用对账公司 feignclient,查询对账公司编码
*/
*/
...
...
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