|
|
@@ -2833,6 +2833,15 @@ handlingProportion,
|
|
|
if (insPlyIncome.getNoPremium() != null && insPlyIncome.getNoPremium().compareTo(BigDecimal.ZERO) > 0 && insPlyIncome.getNoOtherCostsProportion() != null && insPlyIncome.getNoOtherCostsProportion().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
insPlyIncome.setNoOtherCostsPremium(this.getBigDecimal(insPlyIncome.getNoPremium(),insPlyIncome.getNoOtherCostsProportion()));
|
|
|
}
|
|
|
+
|
|
|
+ HashMap<String, Object> params = new HashMap<>();
|
|
|
+ params.put("agreeId",insPlyIncomeVo.getAgreeId());
|
|
|
+
|
|
|
+ PtlAgreement ptlAgreement = ptlAgreementService.selectAgreeId(params);
|
|
|
+ if (ObjectUtils.isEmpty(ptlAgreement)) {
|
|
|
+ return HttpResult.error("协议匹配不上");
|
|
|
+ }
|
|
|
+ insPlyIncome.setAgreementId(ptlAgreement.getId());
|
|
|
insPlyIncome.setJqReceivableProportion(this.calculateTotal(insPlyIncome.getJqSuperviseCostsProportion(),insPlyIncome.getNoOtherCostsProportion(),null));
|
|
|
insPlyIncome.setSyReceivableProportion(this.calculateTotal(insPlyIncome.getSySuperviseCostsProportion(),insPlyIncome.getNoOtherCostsProportion(),null));
|
|
|
insPlyIncome.setNoReceivableProportion(this.calculateTotal(insPlyIncome.getNoSuperviseCostsProportion(),insPlyIncome.getNoOtherCostsProportion(),null));
|
|
|
@@ -2844,6 +2853,8 @@ handlingProportion,
|
|
|
insPlyIncome.setAllFeeValue(this.calculateTotal(insPlyIncome.getCommissionFeevalue(),insPlyIncome.getOtherFeevalue(),null));
|
|
|
insPlyIncome.setAgreementType("1");
|
|
|
insPlyIncome.setHandlingFeesStatus("0");
|
|
|
+ insPlyIncome.setCommissionFeevalue(insPlyIncomeVo.getCommissionFeevalue());
|
|
|
+ insPlyIncome.setOtherFeevalue(insPlyIncomeVo.getOtherFeevalue());
|
|
|
insPlyIncome.setIsNotCar("0");
|
|
|
insPlyIncome.setIsNotDocumentary("0");
|
|
|
insPlyIncome.setDocumentaryFeesStatus("0");
|