Commit cd2044a3 authored by fangxinjiang's avatar fangxinjiang

见费出单逻辑-fxj

parent 8ea513ab
......@@ -516,7 +516,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
private void initJfcdInfo(Date preDispatchDate, TInsuranceDetail detail,List<TInsuranceSettle> settleList) {
//购买周期
String purchaseCycle = detail.getPurchaseCycle();
long purchaseCycle = 0;
LocalDate buyStartDate;
if (CommonConstants.ZERO_STRING.equals(detail.getIsJfcd())){
//计算预计办理日期:若派单当日为工作日3点20之前,则预计办理日期为派单日期,若为3点20之后或派单日为非工作日,则预计办理日期为派单日后最近的一个工作日
......@@ -527,6 +527,9 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}else {
buyStartDate = detail.getPreHandleTime().plusDays(1);
}
if (null != detail.getPolicyEnd() && null != buyStartDate){
purchaseCycle = LocalDateUtil.betweenMonth(buyStartDate.toString(),detail.getPolicyEnd().toString());
}
//计算购买周期:购买周期=保单结束日期-参保开始日期+1(天数);购买周期=保单结束日期-参保开始日期+1(天数)推算出月数;
//按天计费方式
if (null != detail.getBillingType() && CommonConstants.ZERO_INT == detail.getBillingType().intValue()){
......@@ -1746,7 +1749,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
detail.setIsEffect(null);
detail.setIsOverdue(null);
detail.setPaymentTime(CommonConstants.EMPTY_STRING);
detail.setPaymentStatus(CommonConstants.EMPTY_STRING);
detail.setPaymentStatus(CommonConstants.ZERO_STRING);
}
detail.setUpdateBy(user.getId());
detail.setUpdateTime(LocalDateTime.now());
......
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