Commit b19e0ac3 authored by 李灿灿's avatar 李灿灿

商险明细,新数据默认保费是0

parent fc302894
......@@ -240,6 +240,9 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
detail.setBuyHandleStatus(CommonConstants.ONE_INT);
detail.setPolicyStart(LocalDateUtil.parseLocalDate(success.getPolicyStart()));
detail.setPolicyEnd(LocalDateUtil.parseLocalDate(success.getPolicyEnd()));
//保费都默认是0
detail.setActualPremium(new BigDecimal("0.00"));
detail.setEstimatePremium(new BigDecimal("0.00"));
detail.setCreateBy(user.getId());
detail.setCreateName(user.getNickname());
detailList.add(detail);
......@@ -282,6 +285,9 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
detail.setBuyType(CommonConstants.THREE_INT);
//投保状态:待投保
detail.setBuyHandleStatus(CommonConstants.ONE_INT);
//保费都默认是0
detail.setActualPremium(new BigDecimal("0.00"));
detail.setEstimatePremium(new BigDecimal("0.00"));
detail.setCreateBy(user.getId());
detail.setCreateName(user.getNickname());
detailList.add(detail);
......@@ -356,8 +362,9 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
newDetail.setCreateName(user.getNickname());
//替换不参与结算
newDetail.setDefaultSettleId(null);
newDetail.setActualPremium(null);
newDetail.setEstimatePremium(null);
//保费都默认是0
detail.setActualPremium(new BigDecimal("0.00"));
detail.setEstimatePremium(new BigDecimal("0.00"));
Boolean insert = this.save(newDetail);
//替换记录
if (insert){
......
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