|
|
@@ -1186,12 +1186,28 @@ handlingProportion,
|
|
|
InsPlyIncome insPlyIncome = new InsPlyIncome();
|
|
|
BeanUtils.copyProperties(insPlyIncomeVo, insPlyIncome);
|
|
|
this.amountCalculate(insPlyIncomeVo, insPlyIncome);
|
|
|
+ insPlyIncome.setUpdateUserId(BaseController.getUser().getId());
|
|
|
baseMapper.updateById(insPlyIncome);
|
|
|
insPlyIncomeVo.setCrudStatus("2");
|
|
|
this.saveLog(insPlyIncomeVo);
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void updateNoHand(InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
+ // 根据协议 如果是含增值税结算 用保费 * 如果是 不含税保费
|
|
|
+ InsPlyIncome insPlyIncome = new InsPlyIncome();
|
|
|
+ BeanUtils.copyProperties(insPlyIncomeVo, insPlyIncome);
|
|
|
+ insPlyIncome.setCommissionFeevalue(insPlyIncomeVo.getNoSuperviseCostsPremiums());
|
|
|
+ insPlyIncome.setCommissionFeerate(insPlyIncomeVo.getNoSuperviseCostsProportion());
|
|
|
+ insPlyIncome.setUpdateUserId(BaseController.getUser().getId());
|
|
|
+ baseMapper.updateById(insPlyIncome);
|
|
|
+ insPlyIncomeVo.setOtherFeevalue(insPlyIncomeVo.getNoSuperviseCostsPremiums());
|
|
|
+
|
|
|
+ insPlyIncomeVo.setCrudStatus("2");
|
|
|
+ this.saveLog(insPlyIncomeVo);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @param insPlyIncomeVo
|
|
|
* @param insPlyIncome 重新计算金额 通过比例
|
|
|
@@ -1213,28 +1229,29 @@ handlingProportion,
|
|
|
insPlyIncome.setCommissionFeerate(this.calculateTotal(jqSuperviseCostsProportion, sySuperviseCostsProportion,
|
|
|
noSuperviseCostsProportion)); //手续费比例 = 商业手续费比例 + 交强手续费比例 + 非车手续费比例
|
|
|
if (jqSuperviseCostsProportion != null && jqPremium != null) {
|
|
|
- insPlyIncome.setJqSuperviseCostsPremiums(this.algorithmAmount(jqPremium, jqSuperviseCostsProportion)); //交强手续费
|
|
|
+ insPlyIncome.setJqSuperviseCostsPremiums(getBigDecimal(jqPremium, jqSuperviseCostsProportion)); //交强手续费
|
|
|
insPlyIncome.setJqSuperviseCostsProportion(jqSuperviseCostsProportion);
|
|
|
|
|
|
}
|
|
|
if (sySuperviseCostsProportion != null && syPremium != null) {
|
|
|
- insPlyIncome.setSySuperviseCostsPremiums(this.algorithmAmount(syPremium, sySuperviseCostsProportion)); //商业手续费
|
|
|
+ insPlyIncome.setSySuperviseCostsPremiums(getBigDecimal(syPremium, sySuperviseCostsProportion)); //商业手续费
|
|
|
insPlyIncome.setSySuperviseCostsProportion(sySuperviseCostsProportion);
|
|
|
}
|
|
|
if (noSuperviseCostsProportion != null && noPremium != null) {
|
|
|
- insPlyIncome.setNoSuperviseCostsPremiums(this.algorithmAmount(noPremium, noSuperviseCostsProportion)); //非车手续费
|
|
|
+ insPlyIncome.setNoSuperviseCostsPremiums(getBigDecimal(noPremium, noSuperviseCostsProportion)); //非车手续费
|
|
|
insPlyIncome.setNoSuperviseCostsProportion(noSuperviseCostsProportion);
|
|
|
}
|
|
|
if (jqOtherCostsProportion != null && jqPremium != null) {
|
|
|
insPlyIncome.setJqOtherCostsPremium(this.algorithmAmount(jqPremium, jqOtherCostsProportion)); //交强跟单费
|
|
|
+ insPlyIncome.setJqOtherCostsPremium(getBigDecimal(jqPremium, jqOtherCostsProportion)); //交强跟单费
|
|
|
insPlyIncome.setJqOtherCostsProportion(jqOtherCostsProportion);
|
|
|
}
|
|
|
if (syOtherCostsProportion != null && syPremium != null) {
|
|
|
- insPlyIncome.setSyOtherCostsPremium(this.algorithmAmount(syPremium, syOtherCostsProportion)); //商业跟单费
|
|
|
+ insPlyIncome.setSyOtherCostsPremium(getBigDecimal(syPremium, syOtherCostsProportion)); //商业跟单费
|
|
|
insPlyIncome.setSyOtherCostsProportion(syOtherCostsProportion);
|
|
|
}
|
|
|
if (noOtherCostsProportion != null && noPremium != null) {
|
|
|
- insPlyIncome.setNoOtherCostsPremium(this.algorithmAmount(noPremium, noOtherCostsProportion)); //非车跟单费
|
|
|
+ insPlyIncome.setNoOtherCostsPremium(getBigDecimal(noPremium, noOtherCostsProportion)); //非车跟单费
|
|
|
insPlyIncome.setNoOtherCostsProportion(noOtherCostsProportion);
|
|
|
}
|
|
|
insPlyIncome.setCommissionFeevalue(this.calculateTotal(insPlyIncome.getJqSuperviseCostsPremiums(), insPlyIncome.getSySuperviseCostsPremiums(), insPlyIncome.getNoSuperviseCostsPremiums())); //手续费
|
|
|
@@ -2296,7 +2313,6 @@ handlingProportion,
|
|
|
public InsPlyIncome ptTotalAmount(InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
HashMap<String, Object> params = new HashMap<>();
|
|
|
params = this.saveParams(insPlyIncomeVo, params);
|
|
|
- params.remove("handlingFeesStatus");
|
|
|
InsPlyIncome totalledAmount = baseMapper.ptTotalAmount(params); //总金额
|
|
|
return totalledAmount;
|
|
|
}
|
|
|
@@ -2702,9 +2718,16 @@ handlingProportion,
|
|
|
insPlyIncome.setCompanyName(name);
|
|
|
}
|
|
|
insPlyIncome.setCreateTime(LocalDate.now());
|
|
|
- insPlyIncomeVo.setAgreementType("1");
|
|
|
+ insPlyIncome.setAgreementType("1");
|
|
|
+ insPlyIncome.setHandlingFeesStatus("0");
|
|
|
+ insPlyIncome.setIsNotCar("0");
|
|
|
+ insPlyIncome.setIsNotDocumentary("0");
|
|
|
+ insPlyIncome.setDocumentaryFeesStatus("0");
|
|
|
+ insPlyIncome.setAllFeeValue(insPlyIncome.getReceivableAmount());
|
|
|
baseMapper.insert(insPlyIncome);
|
|
|
return HttpResult.ok();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|