|
@@ -4,6 +4,7 @@ import cn.afterturn.easypoi.excel.entity.ExportParams;
|
|
|
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
|
|
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
+import com.alipay.api.domain.VehicleIovData;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
@@ -61,6 +62,8 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
|
|
+import java.math.MathContext;
|
|
|
|
|
+import java.math.RoundingMode;
|
|
|
import java.nio.file.Files;
|
|
import java.nio.file.Files;
|
|
|
import java.nio.file.Path;
|
|
import java.nio.file.Path;
|
|
|
import java.nio.file.Paths;
|
|
import java.nio.file.Paths;
|
|
@@ -70,6 +73,8 @@ import java.time.LocalTime;
|
|
|
import java.time.YearMonth;
|
|
import java.time.YearMonth;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
+import java.util.function.Function;
|
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* <p>
|
|
* <p>
|
|
@@ -192,6 +197,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insPlyIncome.setJqEndDate(StringOperations.emptyStringToNull(insAreaCompany.getJqEndDate()));
|
|
insPlyIncome.setJqEndDate(StringOperations.emptyStringToNull(insAreaCompany.getJqEndDate()));
|
|
|
insPlyIncome.setSyStartDate(StringOperations.emptyStringToNull(insAreaCompany.getSyStartDate()));
|
|
insPlyIncome.setSyStartDate(StringOperations.emptyStringToNull(insAreaCompany.getSyStartDate()));
|
|
|
insPlyIncome.setSyEndDate(StringOperations.emptyStringToNull(insAreaCompany.getSyEndDate()));
|
|
insPlyIncome.setSyEndDate(StringOperations.emptyStringToNull(insAreaCompany.getSyEndDate()));
|
|
|
|
|
+ insPlyIncome.setReceivableAmount(insFeeOrderNew.getNoOtherCostsPremiums());
|
|
|
insPlyIncome.setAllFeeValue(insFeeOrderNew.getNoOtherCostsPremiums());
|
|
insPlyIncome.setAllFeeValue(insFeeOrderNew.getNoOtherCostsPremiums());
|
|
|
insPlyIncome.setNoOtherCostsPremium(insFeeOrderNew.getNoOtherCostsPremiums());
|
|
insPlyIncome.setNoOtherCostsPremium(insFeeOrderNew.getNoOtherCostsPremiums());
|
|
|
insPlyIncome.setNoOtherCostsProportion(insFeeOrderNew.getNoOtherCostsProportion());
|
|
insPlyIncome.setNoOtherCostsProportion(insFeeOrderNew.getNoOtherCostsProportion());
|
|
@@ -216,7 +222,6 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
if (StringUtils.isNotEmpty(noPolicyno)) {
|
|
if (StringUtils.isNotEmpty(noPolicyno)) {
|
|
|
insPlyIncome.setNoPolicyno(noPolicyno); // 非车保单号
|
|
insPlyIncome.setNoPolicyno(noPolicyno); // 非车保单号
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
// insPlyIncome.setDeptId(insFeeOrderNew.getDeptId());
|
|
// insPlyIncome.setDeptId(insFeeOrderNew.getDeptId());
|
|
|
//add by hxl 2024-07-31 修改插入结算表中险种信息错误的bug 将大订单中的险种信息改为小订单的险种信息
|
|
//add by hxl 2024-07-31 修改插入结算表中险种信息错误的bug 将大订单中的险种信息改为小订单的险种信息
|
|
|
this.saveRiskCode(insAreaCompany.getProductid(), insPlyIncome);
|
|
this.saveRiskCode(insAreaCompany.getProductid(), insPlyIncome);
|
|
@@ -245,7 +250,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insPlyIncome.setNoSuperviseCostsProportion(insFeeOrderNew.getNoSuperviseCostsProportion());
|
|
insPlyIncome.setNoSuperviseCostsProportion(insFeeOrderNew.getNoSuperviseCostsProportion());
|
|
|
this.getDeptId(insPlyIncome);
|
|
this.getDeptId(insPlyIncome);
|
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
|
-
|
|
|
|
|
|
|
+ insPlyIncome.setReceivableAmount(insFeeOrderNew.getNoSuperviseCostsPremiums());
|
|
|
baseMapper.insert(insPlyIncome);
|
|
baseMapper.insert(insPlyIncome);
|
|
|
InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
InsPlyIncomeLog insPlyIncomeLog = new InsPlyIncomeLog();
|
|
|
insPlyIncomeLog.setIncomeId(insPlyIncome.getId());
|
|
insPlyIncomeLog.setIncomeId(insPlyIncome.getId());
|
|
@@ -309,6 +314,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insPlyIncome.setSyEndDate(StringOperations.emptyStringToNull(insAreaCompany.getSyEndDate()));
|
|
insPlyIncome.setSyEndDate(StringOperations.emptyStringToNull(insAreaCompany.getSyEndDate()));
|
|
|
insPlyIncome.setUserId(insFeeOrderNew.getUserId());
|
|
insPlyIncome.setUserId(insFeeOrderNew.getUserId());
|
|
|
insPlyIncome.setInsuredName(order.getInsuredname());
|
|
insPlyIncome.setInsuredName(order.getInsuredname());
|
|
|
|
|
+ insPlyIncome.setReceivableAmount(otherAmount);
|
|
|
this.getDeptId(insPlyIncome);
|
|
this.getDeptId(insPlyIncome);
|
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
|
|
|
|
|
@@ -354,6 +360,7 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insPlyIncome.setJqEndDate(StringOperations.emptyStringToNull(insAreaCompany.getJqEndDate()));
|
|
insPlyIncome.setJqEndDate(StringOperations.emptyStringToNull(insAreaCompany.getJqEndDate()));
|
|
|
insPlyIncome.setSyStartDate(StringOperations.emptyStringToNull(insAreaCompany.getSyStartDate()));
|
|
insPlyIncome.setSyStartDate(StringOperations.emptyStringToNull(insAreaCompany.getSyStartDate()));
|
|
|
insPlyIncome.setSyEndDate(StringOperations.emptyStringToNull(insAreaCompany.getSyEndDate()));
|
|
insPlyIncome.setSyEndDate(StringOperations.emptyStringToNull(insAreaCompany.getSyEndDate()));
|
|
|
|
|
+ insPlyIncome.setReceivableAmount(handlingAmount);
|
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
this.saveByCompanyId(insFeeOrderNew, insAreaCompany.getCompanyId(), insPlyIncome);
|
|
|
this.getDeptId(insPlyIncome);
|
|
this.getDeptId(insPlyIncome);
|
|
|
baseMapper.insert(insPlyIncome);
|
|
baseMapper.insert(insPlyIncome);
|
|
@@ -3302,6 +3309,35 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
|
|
|
|
|
return new FinancialReceivablesAllVo(ptSumAmount.toString(),sySumAmount.toString(),year+"",list);
|
|
return new FinancialReceivablesAllVo(ptSumAmount.toString(),sySumAmount.toString(),year+"",list);
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @version
|
|
|
|
|
+ * @author: whp
|
|
|
|
|
+ * @Date: 2024/8/7
|
|
|
|
|
+ * @Description: 私有 车险
|
|
|
|
|
+ */
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public FinancialReceivablesAllVo queryPrivateCar(FinancialReceivablesQueryVo financialReceivablesQueryVo) {
|
|
|
|
|
+ int year =0;
|
|
|
|
|
+ if(StringUtils.isBlank(financialReceivablesQueryVo.getYear())){
|
|
|
|
|
+ Calendar cale = Calendar.getInstance();
|
|
|
|
|
+ year = cale.get(Calendar.YEAR);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ year = Integer.parseInt(financialReceivablesQueryVo.getYear());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ FinancialReceivablesAllVo resultVo = new FinancialReceivablesAllVo();
|
|
|
|
|
+// 私有总金额
|
|
|
|
|
+ financialReceivablesQueryVo.setBeginDate(SliceUpDateUtil.getYearBeginDateStr(year)+" 00:00:00");
|
|
|
|
|
+ financialReceivablesQueryVo.setEndDate(SliceUpDateUtil.getYearEndDateStr(year)+" 23:59:59");
|
|
|
|
|
+// 私有应收
|
|
|
|
|
+ BigDecimal syAmount = baseMapper.queryDateByTypeSumAmount(financialReceivablesQueryVo);
|
|
|
|
|
+ resultVo.setSySumAmount(syAmount.toString());
|
|
|
|
|
+ resultVo.setYear(year+"");
|
|
|
|
|
+
|
|
|
|
|
+ List<FinancialReceivablesVo> result= baseMapper.queryPrivateCar(financialReceivablesQueryVo);
|
|
|
|
|
+ resultVo.setList(result);
|
|
|
|
|
+ return resultVo;
|
|
|
|
|
+ }
|
|
|
/**
|
|
/**
|
|
|
* @version
|
|
* @version
|
|
|
* @author: hxl
|
|
* @author: hxl
|
|
@@ -3311,30 +3347,137 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
@Override
|
|
@Override
|
|
|
public FinancialReceivablesAllMonthVo queryDateByTypeByMonth(FinancialReceivablesQueryMonthVo financialReceivablesQueryVo) {
|
|
public FinancialReceivablesAllMonthVo queryDateByTypeByMonth(FinancialReceivablesQueryMonthVo financialReceivablesQueryVo) {
|
|
|
//检查参数
|
|
//检查参数
|
|
|
- if(StringUtils.isBlank(financialReceivablesQueryVo.getType())){
|
|
|
|
|
|
|
+ if (StringUtils.isBlank(financialReceivablesQueryVo.getType())) {
|
|
|
throw new SystemException("应收类型不能为空,1为平台2为私有,默认传1");
|
|
throw new SystemException("应收类型不能为空,1为平台2为私有,默认传1");
|
|
|
}
|
|
}
|
|
|
//检查参数
|
|
//检查参数
|
|
|
- if(StringUtils.isBlank(financialReceivablesQueryVo.getYearAndMonth())){
|
|
|
|
|
|
|
+ if (StringUtils.isBlank(financialReceivablesQueryVo.getYearAndMonth())) {
|
|
|
throw new SystemException("月份不能为空");
|
|
throw new SystemException("月份不能为空");
|
|
|
}
|
|
}
|
|
|
String yearAndMonth = financialReceivablesQueryVo.getYearAndMonth();
|
|
String yearAndMonth = financialReceivablesQueryVo.getYearAndMonth();
|
|
|
int year = Integer.parseInt(yearAndMonth.split("-")[0]);
|
|
int year = Integer.parseInt(yearAndMonth.split("-")[0]);
|
|
|
int month = Integer.parseInt(yearAndMonth.split("-")[1]);
|
|
int month = Integer.parseInt(yearAndMonth.split("-")[1]);
|
|
|
|
|
|
|
|
- financialReceivablesQueryVo.setBeginDate(SliceUpDateUtil.getStartOfMonth(year,month));
|
|
|
|
|
- financialReceivablesQueryVo.setEndDate(SliceUpDateUtil.getEndOfMonth(year,month));
|
|
|
|
|
|
|
+ financialReceivablesQueryVo.setBeginDate(SliceUpDateUtil.getStartOfMonth(year, month));
|
|
|
|
|
+ financialReceivablesQueryVo.setEndDate(SliceUpDateUtil.getEndOfMonth(year, month));
|
|
|
//查询总数
|
|
//查询总数
|
|
|
- FinancialReceivablesAllMonthVo vo= baseMapper.queryDateByTypeByMonth(financialReceivablesQueryVo);
|
|
|
|
|
|
|
+ FinancialReceivablesAllMonthVo vo = baseMapper.queryDateByTypeByMonth(financialReceivablesQueryVo);
|
|
|
|
|
+// 第二层数据
|
|
|
|
|
+ List<FinancialReceivablesMonthSignleVo> resultData = vo.getList();
|
|
|
vo.setYearAndMonth(yearAndMonth);
|
|
vo.setYearAndMonth(yearAndMonth);
|
|
|
- //查询列表
|
|
|
|
|
- List<FinancialReceivablesMonthVo> list = baseMapper.queryDateByTypeByMonthList(financialReceivablesQueryVo);
|
|
|
|
|
|
|
|
|
|
- //按区域
|
|
|
|
|
- //if()
|
|
|
|
|
|
|
+ HashMap<String, BigDecimal> amountMap;
|
|
|
|
|
+ if ("2".equals(financialReceivablesQueryVo.getType())) {
|
|
|
|
|
+ amountMap = this.privateSett(resultData, financialReceivablesQueryVo);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ amountMap = this.platformSett(resultData, financialReceivablesQueryVo);
|
|
|
|
|
+ }
|
|
|
|
|
+ vo.setYisSumAmount(amountMap.get("yishouAmount").toString());
|
|
|
|
|
+ vo.setYsSumAmount(amountMap.get("yinshouAmount").toString());
|
|
|
|
|
+ vo.setWsSumAmount(amountMap.get("weishouAmount").toString());
|
|
|
|
|
+ return vo;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- return null;
|
|
|
|
|
|
|
+ private HashMap<String, BigDecimal> platformSett(List<FinancialReceivablesMonthSignleVo> resultData, FinancialReceivablesQueryMonthVo financialReceivablesQueryVo) {
|
|
|
|
|
+ List<BigDecimal> yinShouAmountList = new ArrayList<>();
|
|
|
|
|
+ List<BigDecimal> yishouAmountList = new ArrayList<>();
|
|
|
|
|
+ List<BigDecimal> weishouAmountList = new ArrayList<>();
|
|
|
|
|
+
|
|
|
|
|
+ BigDecimal yinshouAmount = new BigDecimal("0.00");
|
|
|
|
|
+ BigDecimal yishouAmount = new BigDecimal("0.00");
|
|
|
|
|
+ BigDecimal weishouAmount = new BigDecimal("0.00");
|
|
|
|
|
+
|
|
|
|
|
+ HashMap<String, BigDecimal> resultMap = new HashMap<>();
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ //平台手续费
|
|
|
|
|
+ List<FinancialReceivablesMonthVo> handList = baseMapper.queryPlatHanding(financialReceivablesQueryVo);
|
|
|
|
|
+
|
|
|
|
|
+ Map<String, FinancialReceivablesMonthVo> collect = handList.stream().collect(Collectors.toMap(FinancialReceivablesMonthVo::getPartnerCompaniesId, Function.identity()));
|
|
|
|
|
+
|
|
|
|
|
+ handList.stream().filter(item -> collect.containsKey(item.getPartnerCompaniesId()))
|
|
|
|
|
+ .forEach(item ->{
|
|
|
|
|
+ FinancialReceivablesMonthVo otherItem = collect.get(item.getPartnerCompaniesId());
|
|
|
|
|
+
|
|
|
|
|
+ FinancialReceivablesMonthSignleVo financialReceivablesMonthSignleVo = new FinancialReceivablesMonthSignleVo();
|
|
|
|
|
+ List<FinancialReceivablesMonthVo> financialReceivablesMonthVos = financialReceivablesMonthSignleVo.getList();
|
|
|
|
|
+ financialReceivablesMonthSignleVo.setCompanyName(item.getCompanyName());
|
|
|
|
|
+ financialReceivablesMonthSignleVo.setAreaName(item.getAreaName());
|
|
|
|
|
+ financialReceivablesMonthVos.add(otherItem);
|
|
|
|
|
+ financialReceivablesMonthVos.add(item);
|
|
|
|
|
+ if("合计".equals(item.getIsHand())){
|
|
|
|
|
+ yinShouAmountList.add(this.stringToBigdecimal(item.getCommissionFeevalue()));
|
|
|
|
|
+ yishouAmountList.add(this.stringToBigdecimal(item.getReadyCommissionFeevalue()));
|
|
|
|
|
+ weishouAmountList.add(this.stringToBigdecimal(item.getNoInvoicCommissionFeevalue()));
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ resultData.add(financialReceivablesMonthSignleVo);
|
|
|
|
|
+ });
|
|
|
|
|
+ yinshouAmount = yinshouAmount.add(yinShouAmountList.stream().reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
|
|
+ yishouAmount = yishouAmount.add(yishouAmountList.stream().reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
|
|
+ weishouAmount = weishouAmount.add(weishouAmountList.stream().reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
|
|
+ resultMap.put("yinshouAmount",yinshouAmount);
|
|
|
|
|
+ resultMap.put("yishouAmount",yishouAmount);
|
|
|
|
|
+ resultMap.put("weishouAmount",weishouAmount);
|
|
|
|
|
+ return resultMap;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private HashMap<String, BigDecimal> privateSett(List<FinancialReceivablesMonthSignleVo> resultData, FinancialReceivablesQueryMonthVo financialReceivablesQueryVo) {
|
|
|
|
|
+ List<BigDecimal> yinShouAmountList = new ArrayList<>();
|
|
|
|
|
+ List<BigDecimal> yishouAmountList = new ArrayList<>();
|
|
|
|
|
+ List<BigDecimal> weishouAmountList = new ArrayList<>();
|
|
|
|
|
+
|
|
|
|
|
+ BigDecimal yinshouAmount = new BigDecimal("0.00");
|
|
|
|
|
+ BigDecimal yishouAmount = new BigDecimal("0.00");
|
|
|
|
|
+ BigDecimal weishouAmount = new BigDecimal("0.00");
|
|
|
|
|
+
|
|
|
|
|
+ HashMap<String, BigDecimal> resultMap = new HashMap<>();
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ //手续费未接应收
|
|
|
|
|
+ List<FinancialReceivablesMonthVo> list = baseMapper.queryDateByTypeByMonthList(financialReceivablesQueryVo);
|
|
|
|
|
+ //跟单统计
|
|
|
|
|
+ List<FinancialReceivablesMonthVo> otherList = baseMapper.queryDateByTypeByMonthOtherList(financialReceivablesQueryVo);
|
|
|
|
|
+
|
|
|
|
|
+ Map<String, FinancialReceivablesMonthVo> collect = otherList.stream().collect(Collectors.toMap(FinancialReceivablesMonthVo::getPartnerCompaniesId, Function.identity()));
|
|
|
|
|
+ list.stream()
|
|
|
|
|
+ .filter(item -> collect.containsKey(item.getPartnerCompaniesId()))
|
|
|
|
|
+ .forEach(
|
|
|
|
|
+ item -> {
|
|
|
|
|
+ FinancialReceivablesMonthVo otherItem = collect.get(item.getPartnerCompaniesId());
|
|
|
|
|
+ FinancialReceivablesMonthSignleVo financialReceivablesMonthSignleVo = new FinancialReceivablesMonthSignleVo();
|
|
|
|
|
+ List<FinancialReceivablesMonthVo> financialReceivablesMonthVos = financialReceivablesMonthSignleVo.getList();
|
|
|
|
|
+ financialReceivablesMonthSignleVo.setCompanyName(item.getCompanyName());
|
|
|
|
|
+ financialReceivablesMonthSignleVo.setAreaName(item.getAreaName());
|
|
|
|
|
+// 合计信息
|
|
|
|
|
+ FinancialReceivablesMonthVo financialReceivablesMonthVo = new FinancialReceivablesMonthVo();
|
|
|
|
|
+ financialReceivablesMonthVo.setCommissionFeevalue(this.calculateTotal(this.stringToBigdecimal(item.getCommissionFeevalue()), new BigDecimal(otherItem.getCommissionFeevalue()), null).toString());
|
|
|
|
|
+ financialReceivablesMonthVo.setNoInvoicCommissionFeevalue(this.calculateTotal(this.stringToBigdecimal(item.getNoInvoicCommissionFeevalue()), new BigDecimal(otherItem.getNoInvoicCommissionFeevalue()), null).toString());
|
|
|
|
|
+ financialReceivablesMonthVo.setReadyCommissionFeevalue(this.calculateTotal(this.stringToBigdecimal(item.getReadyCommissionFeevalue()), new BigDecimal(otherItem.getReadyCommissionFeevalue()), null).toString());
|
|
|
|
|
+ financialReceivablesMonthVo.setSettlementAmount(this.calculateTotal(this.stringToBigdecimal(item.getSettlementAmount()), new BigDecimal(otherItem.getSettlementAmount()), null).toString());
|
|
|
|
|
+ financialReceivablesMonthVo.setNoSettlementAmount(this.calculateTotal(this.stringToBigdecimal(item.getNoSettlementAmount()), new BigDecimal(otherItem.getNoSettlementAmount()), null).toString());
|
|
|
|
|
+ financialReceivablesMonthVo.setIsHand("合计");
|
|
|
|
|
+ financialReceivablesMonthVos.add(otherItem);
|
|
|
|
|
+ financialReceivablesMonthVos.add(item);
|
|
|
|
|
+ financialReceivablesMonthVos.add(financialReceivablesMonthVo);
|
|
|
|
|
+ yishouAmountList.add(this.stringToBigdecimal(financialReceivablesMonthVo.getReadyCommissionFeevalue()));
|
|
|
|
|
+ yinShouAmountList.add(this.stringToBigdecimal(financialReceivablesMonthVo.getCommissionFeevalue()));
|
|
|
|
|
+ weishouAmountList.add(this.stringToBigdecimal(financialReceivablesMonthVo.getNoInvoicCommissionFeevalue()));
|
|
|
|
|
+ resultData.add(financialReceivablesMonthSignleVo);
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+ yinshouAmount = yinshouAmount.add(yinShouAmountList.stream().reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
|
|
+ yishouAmount = yishouAmount.add(yishouAmountList.stream().reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
|
|
+ weishouAmount = weishouAmount.add(weishouAmountList.stream().reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
|
|
+ resultMap.put("yinshouAmount",yinshouAmount);
|
|
|
|
|
+ resultMap.put("yishouAmount",yishouAmount);
|
|
|
|
|
+ resultMap.put("weishouAmount",weishouAmount);
|
|
|
|
|
+ return resultMap;
|
|
|
|
|
+ }
|
|
|
|
|
+ private BigDecimal stringToBigdecimal(String value) {
|
|
|
|
|
+ return new BigDecimal(value).setScale(5, RoundingMode.DOWN);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|