|
|
@@ -516,6 +516,9 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
|
|
|
|
|
|
private HashMap<String, Object> saveParams(InsPlyIncomeVo insPlyIncomeVo, HashMap<String, Object> params) {
|
|
|
+ if(ObjectUtils.isNotEmpty(insPlyIncomeVo.getId())){
|
|
|
+ params.put("id",insPlyIncomeVo.getId());
|
|
|
+ }
|
|
|
if(ObjectUtils.isNotEmpty(insPlyIncomeVo.getStartDate())){
|
|
|
params.put("startDate",insPlyIncomeVo.getStartDate().toString());
|
|
|
}
|
|
|
@@ -1182,33 +1185,34 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
BigDecimal jqNoTaxPremium = insPlyIncomeVo.getJqNoTaxPremium();// 交强手续费 按照思路 交强不含税保费* 交强手续费比例 =交强手续费
|
|
|
BigDecimal syNoTaxPremium = insPlyIncomeVo.getSyNoTaxPremium();// 商业手续费 按照思路 商业不含税保费* 商业手续费比例 =商业手续费
|
|
|
BigDecimal noNoTaxPremium = insPlyIncomeVo.getNoNoTaxPremium();// 非车手续费 按照思路 非车不含税保费* 非车手续费比例 =非车手续费
|
|
|
- if(insPlyIncomeVo.getJqSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
+ if( jqNoTaxPremium != null && insPlyIncomeVo.getJqSuperviseCostsProportion() !=null && insPlyIncomeVo.getJqSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
BigDecimal jqhandingFee = jqNoTaxPremium.multiply(insPlyIncomeVo.getJqSuperviseCostsProportion().divide(new BigDecimal(100)));
|
|
|
insPlyIncome.setJqSuperviseCostsPremiums(jqhandingFee);
|
|
|
}
|
|
|
|
|
|
- if(insPlyIncomeVo.getSySuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
+ if( syNoTaxPremium!= null && insPlyIncomeVo.getSySuperviseCostsProportion() !=null && insPlyIncomeVo.getSySuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
BigDecimal syhandingFee = syNoTaxPremium.multiply(insPlyIncomeVo.getSySuperviseCostsProportion().divide(new BigDecimal(100)));
|
|
|
insPlyIncome.setSySuperviseCostsPremiums(syhandingFee);
|
|
|
}
|
|
|
|
|
|
- if(insPlyIncomeVo.getNoSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
+ if(noNoTaxPremium!= null && insPlyIncomeVo.getNoSuperviseCostsProportion() !=null && insPlyIncomeVo.getNoSuperviseCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
BigDecimal nohandingFee = noNoTaxPremium.multiply(insPlyIncomeVo.getNoSuperviseCostsProportion().divide(new BigDecimal(100)));
|
|
|
insPlyIncome.setNoSuperviseCostsPremiums(nohandingFee);
|
|
|
}
|
|
|
|
|
|
- if(insPlyIncomeVo.getJqOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
+ if( jqNoTaxPremium!= null && insPlyIncomeVo.getJqOtherCostsProportion() !=null && insPlyIncomeVo.getJqOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
BigDecimal jqother = jqNoTaxPremium.multiply(insPlyIncomeVo.getJqOtherCostsProportion().divide(new BigDecimal(100)));//交强跟单费 按照思路 交强不含税保费* 交强跟单比例 = 交强跟单金额
|
|
|
insPlyIncome.setJqOtherCostsPremium(jqother);
|
|
|
}
|
|
|
|
|
|
- if(insPlyIncomeVo.getSyOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
+ if( syNoTaxPremium!= null && insPlyIncomeVo.getSyOtherCostsProportion() !=null && insPlyIncomeVo.getSyOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
BigDecimal syother = syNoTaxPremium.multiply(insPlyIncomeVo.getSyOtherCostsProportion().divide(new BigDecimal(100)));//交强跟单费 按照思路 交强不含税保费* 交强跟单比例 = 交强跟单金额
|
|
|
insPlyIncome.setSyOtherCostsPremium(syother);
|
|
|
}
|
|
|
|
|
|
- if(insPlyIncomeVo.getNoOtherCostsProportion().compareTo(BigDecimal.ZERO) != 0){
|
|
|
- BigDecimal syother = syNoTaxPremium.multiply(insPlyIncomeVo.getNoOtherCostsProportion().divide(new BigDecimal(100)));//非车跟单费 按照思路 非车不含税保费* 非车跟单比例 = 非车跟单金额
|
|
|
+ if( noNoTaxPremium!= null && insPlyIncomeVo.getOtherFeerate() !=null && insPlyIncomeVo.getOtherFeerate().compareTo(BigDecimal.ZERO) != 0){
|
|
|
+ BigDecimal syother = noNoTaxPremium.multiply(insPlyIncomeVo.getOtherFeerate().divide(new BigDecimal(100)));//非车跟单费 按照思路 非车不含税保费* 非车跟单比例 = 非车跟单金额
|
|
|
+ insPlyIncome.setNoOtherCostsProportion(insPlyIncome.getOtherFeerate());
|
|
|
insPlyIncome.setNoOtherCostsPremium(syother);
|
|
|
}
|
|
|
|
|
|
@@ -1625,11 +1629,14 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
public HttpResult<Object> batchBxBalance(InsPlyIncomeVo insPlyIncomeVo) {
|
|
|
|
|
|
// 表内总金额
|
|
|
- BigDecimal settlementAmount = insPlyIncomeVo.getSettlementAmount(); //结算金额
|
|
|
-
|
|
|
SettlementDocumentaryFeesEntity byIdSettlementDocumentaryFeesEntity = settlementDocumentaryFeesService.getById(insPlyIncomeVo.getId());
|
|
|
BigDecimal invoicAmount = byIdSettlementDocumentaryFeesEntity.getTotalAmount();
|
|
|
|
|
|
+
|
|
|
+ String taskId = byIdSettlementDocumentaryFeesEntity.getTaskId();
|
|
|
+ List<String> byTaskId = incomeTaskRelationshipService.getByTaskId(taskId);
|
|
|
+
|
|
|
+
|
|
|
HashMap<String, Object> params = new HashMap<>();
|
|
|
params.put("id",insPlyIncomeVo.getId());
|
|
|
params.put("handlingFeesStatus", "0");
|
|
|
@@ -1646,8 +1653,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
return HttpResult.error("结算金额大于开票金额");
|
|
|
} else if (invoicAmount.compareTo(insPlyIncomeVo.getSettlementAmount()) ==0) {
|
|
|
HashMap<String, Object> incomeParams = new HashMap<>();
|
|
|
- incomeParams = this.saveParams(insPlyIncomeVo,incomeParams);
|
|
|
- incomeParams.put("handlingFeesStatus",insPlyIncomeVo.getHandlingFeesStatus());
|
|
|
+ incomeParams.put("incomeIds",byTaskId);
|
|
|
List<InsPlyIncome> insPlyIncomes = baseMapper.queryNew(incomeParams);
|
|
|
for (InsPlyIncome item : insPlyIncomes){
|
|
|
item.setHandlingFeesStatus("1");
|
|
|
@@ -1783,6 +1789,19 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
settlementDocumentaryFeesVo.setSigningTime(signingTime);
|
|
|
|
|
|
}
|
|
|
+ if(insPlyIncomeVo.getOtherFeevalue().compareTo(BigDecimal.ZERO) ==0 ){
|
|
|
+ throw new SystemException("总金额为0不允许开票");
|
|
|
+ }
|
|
|
+ if(insPlyIncomeVo.getNoInvoicCommissionFeevalue().compareTo(BigDecimal.ZERO) ==0 ){
|
|
|
+ throw new SystemException("未开票金额为0不允许开票");
|
|
|
+ }
|
|
|
+ if( insPlyIncomeVo.getSettlementAmount() ==null || insPlyIncomeVo.getSettlementAmount().compareTo(BigDecimal.ZERO) <=0){
|
|
|
+ throw new SystemException("开票金额错误不允许开票");
|
|
|
+ }
|
|
|
+ if(insPlyIncomeVo.getNoInvoicCommissionFeevalue().compareTo(insPlyIncomeVo.getSettlementAmount()) <0){
|
|
|
+ throw new SystemException("开票金额必须小于未开票金额 不允许开票");
|
|
|
+ }
|
|
|
+
|
|
|
if(StringUtils.isNotEmpty(insPlyIncomeVo.getYear())){
|
|
|
settlementDocumentaryFeesVo.setYear(insPlyIncomeVo.getYear());
|
|
|
}
|
|
|
@@ -1795,7 +1814,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
settlementDocumentaryFeesVo.setCompanyId(insPlyIncomeVo.getCompanyId());// 保险公司id
|
|
|
settlementDocumentaryFeesVo.setPartnerCompaniesId(insPlyIncomeVo.getPartnerCompaniesId()); //合作公司id
|
|
|
settlementDocumentaryFeesVo.setAgreementId(insPlyIncomeVo.getAgreementId());
|
|
|
- settlementDocumentaryFeesVo.setTotalAmount(insPlyIncomeVo.getSettlementAmount()); //其他费用金额
|
|
|
+ settlementDocumentaryFeesVo.setTotalAmount(insPlyIncomeVo.getOtherFeevalue()); //其他费用金额
|
|
|
settlementDocumentaryFeesVo.setUnsettledAmount(insPlyIncomeVo.getNoInvoicCommissionFeevalue().subtract(insPlyIncomeVo.getSettlementAmount())); //未结算
|
|
|
settlementDocumentaryFeesVo.setSettlementAmount(insPlyIncomeVo.getSettlementAmount());//已经开票
|
|
|
settlementDocumentaryFeesVo.setCreateTime(LocalDateTime.now());
|
|
|
@@ -1943,7 +1962,6 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
HashMap<String, Object> params = new HashMap<>();
|
|
|
params = this.saveParams(insPlyIncomeVo, params);
|
|
|
|
|
|
-
|
|
|
BigDecimal sumCommissionFeevalue = BigDecimal.ZERO; //总金额
|
|
|
BigDecimal sumInvoicCommissionFeevalue = BigDecimal.ZERO; //开票未结算
|
|
|
BigDecimal sumReadyCommissionFeevalue = BigDecimal.ZERO; // 已开票已结算
|
|
|
@@ -1961,7 +1979,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
BigDecimal unSettledAmount; //未结算金额
|
|
|
params.put("partnerCompaniesId", item.getPartnerCompaniesId());
|
|
|
|
|
|
- params.remove("handlingFeesStatus");
|
|
|
+// params.remove("handlingFeesStatus");
|
|
|
List<InsPlyIncome> insPlyIncomes = baseMapper.queryNew(params); //金额总数
|
|
|
for (InsPlyIncome all : insPlyIncomes) {
|
|
|
commissionFeevalue = commissionFeevalue.add(all.getCommissionFeevalue());
|
|
|
@@ -2055,20 +2073,23 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
// 存储已存在的年份-月份组合,以便快速查找
|
|
|
Set<String> existingYearMonths = new HashSet<>();
|
|
|
for (Map<String, Object> entry : resultMap) {
|
|
|
- String year = String.valueOf(entry.get("year")) ;
|
|
|
- int month = (Integer) entry.get("monthNumber");
|
|
|
- existingYearMonths.add(year + "-" + month);
|
|
|
+ String monthYear = String.valueOf(entry.get("monthYear")) ;
|
|
|
+ existingYearMonths.add(monthYear);
|
|
|
}
|
|
|
|
|
|
// 遍历所有年份和月份,并添加缺失的条目
|
|
|
for (String year : uniqueYears) {
|
|
|
for (int month = 1; month <= 12; month++) {
|
|
|
- String yearMonth = year + "-" + month;
|
|
|
+ String strNumber = String.valueOf(month);
|
|
|
+ if (strNumber.length() < 2) {
|
|
|
+ strNumber = String.format("%02d", Integer.parseInt(strNumber));
|
|
|
+ }
|
|
|
+ String yearMonth = year + "-" + strNumber;
|
|
|
if (!existingYearMonths.contains(yearMonth)) {
|
|
|
// 创建一个新的条目并添加到resultMap中
|
|
|
HashMap<String, Object> newEntry = new HashMap<>();
|
|
|
newEntry.put("year", year);
|
|
|
- newEntry.put("monthNumber", month);
|
|
|
+ newEntry.put("monthNumber", strNumber);
|
|
|
newEntry.put("allTotalOtherFeevalue", 0);
|
|
|
newEntry.put("invoicCommissionFeevalue", 0);
|
|
|
newEntry.put("monthYear", yearMonth);
|
|
|
@@ -2089,9 +2110,10 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
return yearComparison;
|
|
|
}
|
|
|
|
|
|
- // 如果 year 相同,则比较 monthNumber
|
|
|
- Integer monthNum1 = (Integer) o1.get("monthNumber");
|
|
|
- Integer monthNum2 = (Integer) o2.get("monthNumber");
|
|
|
+// 如果 year 相同,则比较 monthNumber
|
|
|
+
|
|
|
+ Integer monthNum1 = Integer.parseInt(String.format("%2s", o1.get("monthNumber")).replaceAll(" ", "0"));
|
|
|
+ Integer monthNum2 = Integer.parseInt(String.format("%2s", o2.get("monthNumber")).replaceAll(" ", "0"));
|
|
|
return monthNum1.compareTo(monthNum2);
|
|
|
}
|
|
|
});
|
|
|
@@ -2105,51 +2127,66 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
SettlementDocumentaryFeesVo settlementDocumentaryFeesVo = new SettlementDocumentaryFeesVo(); // 生成跟单费结算表
|
|
|
if (!CollectionUtils.isEmpty(insPlyIncomeVo.getMultipleSelection())) {
|
|
|
for (InsPlyIncomeVo insPlyIncomeVo1 : insPlyIncomeVo.getMultipleSelection()) {
|
|
|
+
|
|
|
insPlyIncomeVo.setSettlementAmount(insPlyIncomeVo1.getSettlementAmount());
|
|
|
insPlyIncomeVo.setOtherFeevalue(insPlyIncomeVo1.getAllTotalOtherFeevalue());
|
|
|
YearMonth yearMonth = YearMonth.parse(insPlyIncomeVo1.getMonthYear());
|
|
|
LocalDate signingTime = yearMonth.atDay(1);
|
|
|
+
|
|
|
settlementDocumentaryFeesVo.setSigningTime(signingTime);
|
|
|
|
|
|
+ if(insPlyIncomeVo.getOtherFeevalue().compareTo(BigDecimal.ZERO) ==0 ){
|
|
|
+ throw new SystemException("总金额为0不允许开票");
|
|
|
+ }
|
|
|
+ if(insPlyIncomeVo.getNoInvoicCommissionFeevalue().compareTo(BigDecimal.ZERO) ==0 ){
|
|
|
+ throw new SystemException("未开票金额为0不允许开票");
|
|
|
+ }
|
|
|
+ if( insPlyIncomeVo.getSettlementAmount() ==null || insPlyIncomeVo.getSettlementAmount().compareTo(BigDecimal.ZERO) <=0){
|
|
|
+ throw new SystemException("开票金额错误不允许开票");
|
|
|
+ }
|
|
|
+ if(insPlyIncomeVo.getNoInvoicCommissionFeevalue().compareTo(insPlyIncomeVo.getSettlementAmount()) <0){
|
|
|
+ throw new SystemException("开票金额必须小于未开票金额 不允许开票");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotEmpty(insPlyIncomeVo.getYear())) {
|
|
|
+ settlementDocumentaryFeesVo.setTimeFrame(insPlyIncomeVo.getYear());//年度
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(insPlyIncomeVo.getYear())) {
|
|
|
+ settlementDocumentaryFeesVo.setYear(insPlyIncomeVo.getYear());
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(insPlyIncomeVo.getMonth())) {
|
|
|
+ settlementDocumentaryFeesVo.setMonth(insPlyIncomeVo.getMonth());
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(insPlyIncomeVo.getDay())) {
|
|
|
+ settlementDocumentaryFeesVo.setDay(insPlyIncomeVo.getDay());
|
|
|
+ }
|
|
|
+
|
|
|
+ settlementDocumentaryFeesVo.setCompanyId(insPlyIncomeVo.getCompanyId());// 保险公司id
|
|
|
+ settlementDocumentaryFeesVo.setPartnerCompaniesId(insPlyIncomeVo.getPartnerCompaniesId()); //合作公司id
|
|
|
+ settlementDocumentaryFeesVo.setTotalAmount(insPlyIncomeVo.getOtherFeevalue()); //其他费用金额
|
|
|
+ settlementDocumentaryFeesVo.setUnsettledAmount(insPlyIncomeVo.getNoInvoicCommissionFeevalue().subtract(insPlyIncomeVo.getSettlementAmount())); //未结算
|
|
|
+ settlementDocumentaryFeesVo.setSettlementAmount(insPlyIncomeVo.getSettlementAmount());//已经开票
|
|
|
+ settlementDocumentaryFeesVo.setCreateTime(LocalDateTime.now());
|
|
|
+ settlementDocumentaryFeesVo.setAgreementType("2");
|
|
|
+ settlementDocumentaryFeesVo.setIds(insPlyIncomeVo.getIncomeIds());
|
|
|
+ settlementDocumentaryFeesVo.setSettlementStatus("1");
|
|
|
+ settlementDocumentaryFeesVo.setIsNotCar(insPlyIncomeVo.getIsNotCar());
|
|
|
+ if (StringUtils.isNotEmpty(insPlyIncomeVo.getContractId())) {
|
|
|
+ settlementDocumentaryFeesVo.setInvoiceId(insPlyIncomeVo.getContractId()); //开票号
|
|
|
+ }
|
|
|
+ settlementDocumentaryFeesVo.setHandlingFeesStatus(insPlyIncomeVo.getHandlingFeesStatus());
|
|
|
+ settlementDocumentaryFeesVo.setInvoicingMethod(insPlyIncomeVo.getInvoicingMethod()); //开票方式
|
|
|
+ settlementDocumentaryFeesVo.setTaxPoints(insPlyIncomeVo.getTaxPoints()); //税点
|
|
|
+ settlementDocumentaryFeesVo.setIds(insPlyIncomeVo.getIds());
|
|
|
+// settlementDocumentaryFeesVo.setSigningTime(insPlyIncomeVo.getSettlementTime()); //签单日期
|
|
|
+ // 税点支出
|
|
|
+ if (BigDecimalUtils.nullToZero(insPlyIncomeVo.getTaxPoints()) != null && BigDecimalUtils.nullToZero(insPlyIncomeVo.getSettlementAmount()) != null) {
|
|
|
+ BigDecimal settlementAmount = insPlyIncomeVo.getSettlementAmount();
|
|
|
+ settlementDocumentaryFeesVo.setExpendAmount(settlementAmount.multiply(BigDecimal.ONE.subtract(insPlyIncomeVo.getTaxPoints().divide(new BigDecimal(100)))));
|
|
|
+ }
|
|
|
+ settlementDocumentaryFeesService.inertSettle(settlementDocumentaryFeesVo);
|
|
|
}
|
|
|
}
|
|
|
- if (StringUtils.isNotEmpty(insPlyIncomeVo.getYear())) {
|
|
|
- settlementDocumentaryFeesVo.setTimeFrame(insPlyIncomeVo.getYear());//年度
|
|
|
- }
|
|
|
- if (StringUtils.isNotEmpty(insPlyIncomeVo.getYear())) {
|
|
|
- settlementDocumentaryFeesVo.setYear(insPlyIncomeVo.getYear());
|
|
|
- }
|
|
|
- if (StringUtils.isNotEmpty(insPlyIncomeVo.getMonth())) {
|
|
|
- settlementDocumentaryFeesVo.setMonth(insPlyIncomeVo.getMonth());
|
|
|
- }
|
|
|
- if (StringUtils.isNotEmpty(insPlyIncomeVo.getDay())) {
|
|
|
- settlementDocumentaryFeesVo.setDay(insPlyIncomeVo.getDay());
|
|
|
- }
|
|
|
- settlementDocumentaryFeesVo.setCompanyId(insPlyIncomeVo.getCompanyId());// 保险公司id
|
|
|
- settlementDocumentaryFeesVo.setPartnerCompaniesId(insPlyIncomeVo.getPartnerCompaniesId()); //合作公司id
|
|
|
- settlementDocumentaryFeesVo.setTotalAmount(insPlyIncomeVo.getOtherFeevalue()); //其他费用金额
|
|
|
- settlementDocumentaryFeesVo.setUnsettledAmount(insPlyIncomeVo.getNoInvoicCommissionFeevalue().subtract(insPlyIncomeVo.getSettlementAmount())); //未结算
|
|
|
- settlementDocumentaryFeesVo.setSettlementAmount(insPlyIncomeVo.getSettlementAmount());//已经开票
|
|
|
- settlementDocumentaryFeesVo.setCreateTime(LocalDateTime.now());
|
|
|
- settlementDocumentaryFeesVo.setAgreementType(insPlyIncomeVo.getAgreementType());
|
|
|
- settlementDocumentaryFeesVo.setIds(insPlyIncomeVo.getIncomeIds());
|
|
|
- settlementDocumentaryFeesVo.setSettlementStatus("1");
|
|
|
- settlementDocumentaryFeesVo.setIsNotCar(insPlyIncomeVo.getIsNotCar());
|
|
|
- if (StringUtils.isNotEmpty(insPlyIncomeVo.getContractId())) {
|
|
|
- settlementDocumentaryFeesVo.setInvoiceId(insPlyIncomeVo.getContractId()); //开票号
|
|
|
- }
|
|
|
- settlementDocumentaryFeesVo.setHandlingFeesStatus(insPlyIncomeVo.getHandlingFeesStatus());
|
|
|
- settlementDocumentaryFeesVo.setInvoicingMethod(insPlyIncomeVo.getInvoicingMethod()); //开票方式
|
|
|
- settlementDocumentaryFeesVo.setTaxPoints(insPlyIncomeVo.getTaxPoints()); //税点
|
|
|
- settlementDocumentaryFeesVo.setIds(insPlyIncomeVo.getIds());
|
|
|
- settlementDocumentaryFeesVo.setSigningTime(insPlyIncomeVo.getSettlementTime()); //签单日期
|
|
|
- // 税点支出
|
|
|
- if (BigDecimalUtils.nullToZero(insPlyIncomeVo.getTaxPoints()) != null && BigDecimalUtils.nullToZero(insPlyIncomeVo.getSettlementAmount()) != null) {
|
|
|
- BigDecimal settlementAmount = insPlyIncomeVo.getSettlementAmount();
|
|
|
- settlementDocumentaryFeesVo.setExpendAmount(settlementAmount.multiply(BigDecimal.ONE.subtract(insPlyIncomeVo.getTaxPoints().divide(new BigDecimal(100)))));
|
|
|
- }
|
|
|
- settlementDocumentaryFeesService.inertSettle(settlementDocumentaryFeesVo);
|
|
|
-
|
|
|
return HttpResult.ok();
|
|
|
}
|
|
|
|
|
|
@@ -2217,6 +2254,8 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
byBxLicenseno.setOtherFeevalue(this.calculateTotal(jqOtherAmount,syOtherAmount,null));
|
|
|
byBxLicenseno.setOtherFeerate(this.calculateTotal(jqOtherCostsProportion,syOtherCostsProportion ,null));
|
|
|
byBxLicenseno.setAllFeeValue(this.calculateTotal(jqOtherAmount,syOtherAmount,null));
|
|
|
+ byBxLicenseno.setUpdateUserId(BaseController.getUser().getId());
|
|
|
+ byBxLicenseno.setUpdateUserName(BaseController.getUser().getName());
|
|
|
baseMapper.updateById(byBxLicenseno);
|
|
|
|
|
|
|