Commit 34a67cd5 authored by 李灿灿's avatar 李灿灿

Merge branch 'feature-licancan' into 'develop'

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

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