fix 87948 全所收入统计--导出数据和列表数据对不上
This commit is contained in:
+20
-6
@@ -720,23 +720,37 @@ public class PayWorkingGroupServiceImpl extends ServiceImpl<PayWorkingGroupMappe
|
||||
// 预计到账金额
|
||||
List<AllProjectStatistics> listEstimatedArrivalMoney = payWorkingGroupMapper.cumulativeListEstimatedArrivalMoney(allProjectStatisticsSearch.getPaymentYear());
|
||||
List<AllProjectStatistics> list2=getAllProjectMoneyStatistics(allProjectStatisticsSearch,allMoneyList,listConfirmAmount, listBillMoney,listComeAllMoney,listEstimatedArrivalMoney);
|
||||
AllMoney allMoney=payWorkingGroupMapper.queryPageList33(allProjectStatisticsSearch, idList);
|
||||
//AllMoney allMoney=payWorkingGroupMapper.queryPageList33(allProjectStatisticsSearch, idList);
|
||||
|
||||
List<String> comeAllMoneyList=list2.stream().map(AllProjectStatistics::getComeAllMoney).collect(Collectors.toList());
|
||||
List<String> billMoneyList=list2.stream().map(AllProjectStatistics::getBillMoney).collect(Collectors.toList());
|
||||
List<String> confirmMoneyList=list2.stream().map(AllProjectStatistics::getConfirmAmount).collect(Collectors.toList());
|
||||
List<String> allMoneyList1=list2.stream().map(AllProjectStatistics::getComeAllMoney).collect(Collectors.toList());
|
||||
List<String> allMoneyList1=list2.stream().map(AllProjectStatistics::getEstimatedArrivalMoney).collect(Collectors.toList());
|
||||
List<List<String>> list3 = new ArrayList<>();
|
||||
list3.add(0,allMoneyList1);
|
||||
list3.add(1,confirmMoneyList);
|
||||
list3.add(2,billMoneyList);
|
||||
list3.add(3,comeAllMoneyList);
|
||||
|
||||
BigDecimal allMoney = BigDecimal.ZERO;
|
||||
BigDecimal comeAllMoney = BigDecimal.ZERO;
|
||||
BigDecimal billMoney = BigDecimal.ZERO;
|
||||
BigDecimal confirmAmount = BigDecimal.ZERO;
|
||||
for (AllProjectStatistics item : list2) {
|
||||
BigDecimal allMoney1 = new BigDecimal(item.getEstimatedArrivalMoney());
|
||||
allMoney = allMoney.add(allMoney1);
|
||||
BigDecimal comeAllMoney1 = new BigDecimal(item.getComeAllMoney());
|
||||
comeAllMoney = comeAllMoney.add(comeAllMoney1);
|
||||
BigDecimal billMoney1 = new BigDecimal(item.getBillMoney());
|
||||
billMoney = billMoney.add(billMoney1);
|
||||
BigDecimal confirmAmount1 = new BigDecimal(item.getConfirmAmount());
|
||||
confirmAmount = confirmAmount.add(confirmAmount1);
|
||||
};
|
||||
|
||||
AllProjectMoneyExcel comeAllProjectMoney=new AllProjectMoneyExcel("到账金额",allMoney.getComeAllMoney());
|
||||
AllProjectMoneyExcel billAllProjectMoney=new AllProjectMoneyExcel("开票金额",allMoney.getBillMoney());
|
||||
AllProjectMoneyExcel confirmAllProjectMoney=new AllProjectMoneyExcel("确认收入金额",allMoney.getConfirmAmount());
|
||||
AllProjectMoneyExcel allProjectMoney=new AllProjectMoneyExcel("年度待确收金额",allMoney.getAllMoney());
|
||||
AllProjectMoneyExcel comeAllProjectMoney=new AllProjectMoneyExcel("到账金额",comeAllMoney.toString());
|
||||
AllProjectMoneyExcel billAllProjectMoney=new AllProjectMoneyExcel("开票金额",billMoney.toString());
|
||||
AllProjectMoneyExcel confirmAllProjectMoney=new AllProjectMoneyExcel("确认收入金额",confirmAmount.toString());
|
||||
AllProjectMoneyExcel allProjectMoney=new AllProjectMoneyExcel("预估收入金额",allMoney.toString());
|
||||
List<AllProjectMoneyExcel> excelList = new ArrayList<>();
|
||||
excelList.add(0,allProjectMoney);
|
||||
excelList.add(1,confirmAllProjectMoney);
|
||||
|
||||
Reference in New Issue
Block a user