|
@@ -180,7 +180,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insPlyIncome.setLicenseno(order.getLicenseno());
|
|
insPlyIncome.setLicenseno(order.getLicenseno());
|
|
|
insPlyIncome.setTaxamount(insAreaCompany.getTaxamount());
|
|
insPlyIncome.setTaxamount(insAreaCompany.getTaxamount());
|
|
|
insPlyIncome.setNoTaxPremium(insFeeOrderNew.getNoNoTaxPremium());
|
|
insPlyIncome.setNoTaxPremium(insFeeOrderNew.getNoNoTaxPremium());
|
|
|
- insPlyIncome.setCreateTime(LocalDate.now());
|
|
|
|
|
|
|
+ insPlyIncome.setCreateTime(LocalDateTime.now());
|
|
|
insPlyIncome.setDocumentaryFeesStatus("0");
|
|
insPlyIncome.setDocumentaryFeesStatus("0");
|
|
|
insPlyIncome.setInsuredName(order.getInsuredname());
|
|
insPlyIncome.setInsuredName(order.getInsuredname());
|
|
|
insPlyIncome.setHandlingFeesStatus("0");
|
|
insPlyIncome.setHandlingFeesStatus("0");
|
|
@@ -198,6 +198,13 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
|
this.getDeptId(insPlyIncome);
|
|
this.getDeptId(insPlyIncome);
|
|
|
baseMapper.insert(insPlyIncome);
|
|
baseMapper.insert(insPlyIncome);
|
|
|
|
|
+
|
|
|
|
|
+ InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
|
|
+ insPlyIncomeLog.setIncomeId(insPlyIncome.getId());
|
|
|
|
|
+ BeanUtils.copyProperties(insPlyIncome,insPlyIncomeLog);
|
|
|
|
|
+ insPlyIncomeLog.setId(null);
|
|
|
|
|
+ insPlyIncomeLog.setOperationStatus("1");
|
|
|
|
|
+ insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void saveNoSupervise(InsOrders order, InsFeeOrderNew insFeeOrderNew, InsAreaCompany insAreaCompany) {
|
|
private void saveNoSupervise(InsOrders order, InsFeeOrderNew insFeeOrderNew, InsAreaCompany insAreaCompany) {
|
|
@@ -218,7 +225,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insPlyIncome.setAgreementId(insFeeOrderNew.getAgreementId());
|
|
insPlyIncome.setAgreementId(insFeeOrderNew.getAgreementId());
|
|
|
insPlyIncome.setLicenseno(order.getLicenseno());
|
|
insPlyIncome.setLicenseno(order.getLicenseno());
|
|
|
insPlyIncome.setTaxamount(insAreaCompany.getTaxamount());
|
|
insPlyIncome.setTaxamount(insAreaCompany.getTaxamount());
|
|
|
- insPlyIncome.setCreateTime(LocalDate.now());
|
|
|
|
|
|
|
+ insPlyIncome.setCreateTime(LocalDateTime.now());
|
|
|
insPlyIncome.setDocumentaryFeesStatus("0");
|
|
insPlyIncome.setDocumentaryFeesStatus("0");
|
|
|
insPlyIncome.setHandlingFeesStatus("0");
|
|
insPlyIncome.setHandlingFeesStatus("0");
|
|
|
insPlyIncome.setIsNotCar("1");
|
|
insPlyIncome.setIsNotCar("1");
|
|
@@ -238,6 +245,12 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
|
|
|
|
|
|
baseMapper.insert(insPlyIncome);
|
|
baseMapper.insert(insPlyIncome);
|
|
|
|
|
+ InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
|
|
+ insPlyIncomeLog.setIncomeId(insPlyIncome.getId());
|
|
|
|
|
+ BeanUtils.copyProperties(insPlyIncome,insPlyIncomeLog);
|
|
|
|
|
+ insPlyIncomeLog.setId(null);
|
|
|
|
|
+ insPlyIncomeLog.setOperationStatus("1");
|
|
|
|
|
+ insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void saveRiskCode(String productid, InsPlyIncome insPlyIncome) {
|
|
private void saveRiskCode(String productid, InsPlyIncome insPlyIncome) {
|
|
@@ -274,7 +287,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insAreaCompany.getSypolicyno(), null, null, null, null, order.getProductid(), insAreaCompany.getPayDate(),
|
|
insAreaCompany.getSypolicyno(), null, null, null, null, order.getProductid(), insAreaCompany.getPayDate(),
|
|
|
insAreaCompany.getSigningTime(), insAreaCompany.getCompanyId(), null, insFeeOrderNew.getAgreementId(), order.getLicenseno(),
|
|
insAreaCompany.getSigningTime(), insAreaCompany.getCompanyId(), null, insFeeOrderNew.getAgreementId(), order.getLicenseno(),
|
|
|
insAreaCompany.getTaxamount(),
|
|
insAreaCompany.getTaxamount(),
|
|
|
- allNoTaxPremium, null, otherProportion, null, otherAmount, otherAmount, null, null, LocalDate.now(), null, null, null, "0"
|
|
|
|
|
|
|
+ allNoTaxPremium, null, otherProportion, null, otherAmount, otherAmount, null, null, LocalDateTime.now(), null, null, null, "0"
|
|
|
, "0", "0", "1");
|
|
, "0", "0", "1");
|
|
|
this.saveRiskCode(order.getProductid(), insPlyIncome);
|
|
this.saveRiskCode(order.getProductid(), insPlyIncome);
|
|
|
insPlyIncome.setTaxPremium(allPremium);
|
|
insPlyIncome.setTaxPremium(allPremium);
|
|
@@ -296,6 +309,12 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
|
|
|
|
|
|
baseMapper.insert(insPlyIncome);
|
|
baseMapper.insert(insPlyIncome);
|
|
|
|
|
+ InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
|
|
+ insPlyIncomeLog.setIncomeId(insPlyIncome.getId());
|
|
|
|
|
+ BeanUtils.copyProperties(insPlyIncome,insPlyIncomeLog);
|
|
|
|
|
+ insPlyIncomeLog.setId(null);
|
|
|
|
|
+ insPlyIncomeLog.setOperationStatus("1");
|
|
|
|
|
+ insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void saveInsuranceProcedures(InsOrders order, InsFeeOrderNew insFeeOrderNew, InsAreaCompany insAreaCompany) {
|
|
private void saveInsuranceProcedures(InsOrders order, InsFeeOrderNew insFeeOrderNew, InsAreaCompany insAreaCompany) {
|
|
@@ -310,7 +329,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insAreaCompany.getSypolicyno(), null, null, null, null, order.getProductid(), insAreaCompany.getPayDate(),
|
|
insAreaCompany.getSypolicyno(), null, null, null, null, order.getProductid(), insAreaCompany.getPayDate(),
|
|
|
insAreaCompany.getSigningTime(), insAreaCompany.getCompanyId(), null, insFeeOrderNew.getAgreementId(), order.getLicenseno(),
|
|
insAreaCompany.getSigningTime(), insAreaCompany.getCompanyId(), null, insFeeOrderNew.getAgreementId(), order.getLicenseno(),
|
|
|
insAreaCompany.getTaxamount()
|
|
insAreaCompany.getTaxamount()
|
|
|
- , allNoTaxPremium, handlingProportion, null, handlingAmount, null, handlingAmount, null, null, LocalDate.now(), null,
|
|
|
|
|
|
|
+ , allNoTaxPremium, handlingProportion, null, handlingAmount, null, handlingAmount, null, null, LocalDateTime.now(), null,
|
|
|
null, null, "0", "0", "0", "0");
|
|
null, null, "0", "0", "0", "0");
|
|
|
BigDecimal allTaxPremium = this.calculateTotal(insFeeOrderNew.getJqPremium(), insFeeOrderNew.getSyPremium(), null);
|
|
BigDecimal allTaxPremium = this.calculateTotal(insFeeOrderNew.getJqPremium(), insFeeOrderNew.getSyPremium(), null);
|
|
|
insPlyIncome.setJqPremium(insFeeOrderNew.getJqPremium());
|
|
insPlyIncome.setJqPremium(insFeeOrderNew.getJqPremium());
|
|
@@ -332,6 +351,13 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
|
this.getDeptId(insPlyIncome);
|
|
this.getDeptId(insPlyIncome);
|
|
|
baseMapper.insert(insPlyIncome);
|
|
baseMapper.insert(insPlyIncome);
|
|
|
|
|
+
|
|
|
|
|
+ InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
|
|
+ insPlyIncomeLog.setIncomeId(insPlyIncome.getId());
|
|
|
|
|
+ BeanUtils.copyProperties(insPlyIncome,insPlyIncomeLog);
|
|
|
|
|
+ insPlyIncomeLog.setId(null);
|
|
|
|
|
+ insPlyIncomeLog.setOperationStatus("1");
|
|
|
|
|
+ insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private String setNoPolicyno(com.ydtech.modules.fnc.entity.InsAreaCompany insAreaCompany) {
|
|
private String setNoPolicyno(com.ydtech.modules.fnc.entity.InsAreaCompany insAreaCompany) {
|
|
@@ -416,7 +442,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insAreaCompany.getCompanyId(),
|
|
insAreaCompany.getCompanyId(),
|
|
|
null, insFeeOrderNew.getAgreementId(), order.getLicenseno(), insAreaCompany.getTaxamount(), allNoTaxPremium,
|
|
null, insFeeOrderNew.getAgreementId(), order.getLicenseno(), insAreaCompany.getTaxamount(), allNoTaxPremium,
|
|
|
handlingProportion,
|
|
handlingProportion,
|
|
|
- otherProportion, handlingAmount, otherAmount, allAmount, null, null, LocalDate.now(), null, null, null, "0", "0", "0", "0");
|
|
|
|
|
|
|
+ otherProportion, handlingAmount, otherAmount, allAmount, null, null, LocalDateTime.now(), null, null, null, "0", "0", "0", "0");
|
|
|
insPlyIncome.setJqReceivableProportion(jqReceivableProportion);
|
|
insPlyIncome.setJqReceivableProportion(jqReceivableProportion);
|
|
|
insPlyIncome.setSyReceivableProportion(syReceivableProportion);
|
|
insPlyIncome.setSyReceivableProportion(syReceivableProportion);
|
|
|
insPlyIncome.setNoReceivableProportion(noReceivableProportion);
|
|
insPlyIncome.setNoReceivableProportion(noReceivableProportion);
|
|
@@ -447,6 +473,14 @@ handlingProportion,
|
|
|
insPlyIncome.setInsuredName(order.getInsuredname());
|
|
insPlyIncome.setInsuredName(order.getInsuredname());
|
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
|
baseMapper.insert(insPlyIncome);
|
|
baseMapper.insert(insPlyIncome);
|
|
|
|
|
+
|
|
|
|
|
+ InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
|
|
+ insPlyIncomeLog.setIncomeId(insPlyIncome.getId());
|
|
|
|
|
+ BeanUtils.copyProperties(insPlyIncome,insPlyIncomeLog);
|
|
|
|
|
+ insPlyIncomeLog.setId(null);
|
|
|
|
|
+ insPlyIncomeLog.setOperationStatus("1");
|
|
|
|
|
+ insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void getDeptId(InsPlyIncome insPlyIncome) {
|
|
private void getDeptId(InsPlyIncome insPlyIncome) {
|
|
@@ -1210,11 +1244,6 @@ handlingProportion,
|
|
|
insPlyIncome.setUpdateUserId(BaseController.getUser().getId());
|
|
insPlyIncome.setUpdateUserId(BaseController.getUser().getId());
|
|
|
baseMapper.updateById(insPlyIncome);
|
|
baseMapper.updateById(insPlyIncome);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-//
|
|
|
|
|
-// insPlyIncomeVo.setCrudStatus("2");
|
|
|
|
|
-// this.saveLog(insPlyIncomeVo);
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -1444,7 +1473,7 @@ handlingProportion,
|
|
|
insPlyIncome.setSignDate(localDateTime);
|
|
insPlyIncome.setSignDate(localDateTime);
|
|
|
insPlyIncome.setDeptId(BaseController.getUser().getDeptId());
|
|
insPlyIncome.setDeptId(BaseController.getUser().getDeptId());
|
|
|
|
|
|
|
|
- insPlyIncome.setCreateTime(LocalDate.now());
|
|
|
|
|
|
|
+ insPlyIncome.setCreateTime(LocalDateTime.now());
|
|
|
insPlyIncome.setOtherFeerate(this.calculateTotal(insPlyIncomeVo.getJqOtherCostsProportion(),insPlyIncomeVo.getSyOtherCostsProportion(),insPlyIncomeVo.getNoOtherCostsProportion()));
|
|
insPlyIncome.setOtherFeerate(this.calculateTotal(insPlyIncomeVo.getJqOtherCostsProportion(),insPlyIncomeVo.getSyOtherCostsProportion(),insPlyIncomeVo.getNoOtherCostsProportion()));
|
|
|
insPlyIncome.setCommissionFeerate(this.calculateTotal(insPlyIncomeVo.getJqSuperviseCostsProportion(),insPlyIncomeVo.getSySuperviseCostsProportion(),insPlyIncomeVo.getNoSuperviseCostsProportion()));
|
|
insPlyIncome.setCommissionFeerate(this.calculateTotal(insPlyIncomeVo.getJqSuperviseCostsProportion(),insPlyIncomeVo.getSySuperviseCostsProportion(),insPlyIncomeVo.getNoSuperviseCostsProportion()));
|
|
|
|
|
|
|
@@ -2849,7 +2878,7 @@ handlingProportion,
|
|
|
insPlyIncome.setJqReceivableProportion(this.calculateTotal(insPlyIncome.getJqSuperviseCostsProportion(),insPlyIncome.getNoOtherCostsProportion(),null));
|
|
insPlyIncome.setJqReceivableProportion(this.calculateTotal(insPlyIncome.getJqSuperviseCostsProportion(),insPlyIncome.getNoOtherCostsProportion(),null));
|
|
|
insPlyIncome.setSyReceivableProportion(this.calculateTotal(insPlyIncome.getSySuperviseCostsProportion(),insPlyIncome.getNoOtherCostsProportion(),null));
|
|
insPlyIncome.setSyReceivableProportion(this.calculateTotal(insPlyIncome.getSySuperviseCostsProportion(),insPlyIncome.getNoOtherCostsProportion(),null));
|
|
|
insPlyIncome.setNoReceivableProportion(this.calculateTotal(insPlyIncome.getNoSuperviseCostsProportion(),insPlyIncome.getNoOtherCostsProportion(),null));
|
|
insPlyIncome.setNoReceivableProportion(this.calculateTotal(insPlyIncome.getNoSuperviseCostsProportion(),insPlyIncome.getNoOtherCostsProportion(),null));
|
|
|
- insPlyIncome.setCreateTime(LocalDate.now());
|
|
|
|
|
|
|
+ insPlyIncome.setCreateTime(LocalDateTime.now());
|
|
|
insPlyIncome.setCommissionFeerate(this.calculateTotal(insPlyIncome.getJqSuperviseCostsProportion(),insPlyIncome.getSySuperviseCostsProportion(),insPlyIncome.getNoSuperviseCostsPremiums()));
|
|
insPlyIncome.setCommissionFeerate(this.calculateTotal(insPlyIncome.getJqSuperviseCostsProportion(),insPlyIncome.getSySuperviseCostsProportion(),insPlyIncome.getNoSuperviseCostsPremiums()));
|
|
|
insPlyIncome.setCommissionFeevalue(this.calculateTotal(insPlyIncome.getJqSuperviseCostsPremiums(),insPlyIncome.getSySuperviseCostsPremiums(),insPlyIncome.getNoSuperviseCostsPremiums()));
|
|
insPlyIncome.setCommissionFeevalue(this.calculateTotal(insPlyIncome.getJqSuperviseCostsPremiums(),insPlyIncome.getSySuperviseCostsPremiums(),insPlyIncome.getNoSuperviseCostsPremiums()));
|
|
|
insPlyIncome.setOtherFeerate(this.calculateTotal(insPlyIncome.getJqOtherCostsProportion(),insPlyIncome.getSyOtherCostsProportion(),insPlyIncome.getNoOtherCostsProportion()));
|
|
insPlyIncome.setOtherFeerate(this.calculateTotal(insPlyIncome.getJqOtherCostsProportion(),insPlyIncome.getSyOtherCostsProportion(),insPlyIncome.getNoOtherCostsProportion()));
|