Commit 7674f95c by jianan

新单跟进同步预约信息14

parent cd66fe60
......@@ -506,6 +506,9 @@ public class ApiPolicyFollowController {
if (ObjectUtils.isEmpty(policyFollow.getReconciliationCompanyCode())) {
return Result.fail(ResultCode.NULL_ERROR.getCode(), "新单跟进记录中,reconciliationCompanyCode不能为空");
}
if (ObjectUtils.isEmpty(policyFollow.getReconciliationCompanyBizId())) {
return Result.fail(ResultCode.NULL_ERROR.getCode(), "新单跟进记录中,reconciliationCompanyBizId不能为空");
}
PolicyFollowStatusEnum currentStatusEnum = PolicyFollowStatusEnum.getEnumByValue(changePolicyFollowStatusRequest.getStatus());
// 修改为生效时需要校验、同步预计发佣
......
......@@ -497,11 +497,10 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
throw new BusinessException(ErrorCode.NOT_FOUND_ERROR.getCode(), "policy不存在");
}
policy.setPolicyNo(policyFollow.getPolicyNo());
policy.setPaymentPremium(policyFollow.getEachIssuePremium());
policy.setPolicyHolderAge(calculatePolicyHolderAge(policyFollow.getCustomerBizId()));
policy.setEffectiveDate(policyFollow.getEffectiveDate());
policy.setCoolingOffEndDate(policyFollow.getCoolingOffEndDate());
policy.setPaymentTerm(policyFollow.getIssueNumber());
policy.setReconciliationCompanyBizId(policyFollow.getReconciliationCompanyBizId());
policy.setReconciliationCompanyCode(policyFollow.getReconciliationCompanyCode());
// 更新保单状态为生效
policy.setStatus(PolicyStatusEnum.INFORCE.getItemValue());
// 手动映射不同名的字段
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment