update 会所收入导出功能

This commit is contained in:
邝凯兴
2022-07-29 16:50:11 +08:00
parent cd84637553
commit a4b02a3566
2 changed files with 18 additions and 18 deletions
@@ -648,17 +648,17 @@ public class PayWorkingGroupServiceImpl extends ServiceImpl<PayWorkingGroupMappe
List<String> billMoneyList=list2.stream().map(allProjectStatistics -> allProjectStatistics.getBillMoney()).collect(Collectors.toList());
List<String> confirmMoneyList=list2.stream().map(allProjectStatistics -> allProjectStatistics.getConfirmAmount()).collect(Collectors.toList());
List<List<String>> list3 = new ArrayList<>();
list3.add(0,comeAllMoneyList);
list3.add(0,confirmMoneyList);
list3.add(1,billMoneyList);
list3.add(2,confirmMoneyList);
list3.add(2,comeAllMoneyList);
AllProjectMoneyExcel comeAllProjectMoney=new AllProjectMoneyExcel("到账金额",allMoney.getComeAllMoney());
AllProjectMoneyExcel billAllProjectMoney=new AllProjectMoneyExcel("开票金额",allMoney.getBillMoney());
AllProjectMoneyExcel confirmAllProjectMoney=new AllProjectMoneyExcel("确认收入金额",allMoney.getConfirmAmount());
List<AllProjectMoneyExcel> excelList = new ArrayList<>();
excelList.add(0,comeAllProjectMoney);
excelList.add(0,confirmAllProjectMoney);
excelList.add(1,billAllProjectMoney);
excelList.add(2,confirmAllProjectMoney);
excelList.add(2,comeAllProjectMoney);
for (int i=0; i < excelList.size(); i++) {
excelList.get(i).setJanuary(list3.get(i).get(0));
@@ -15,46 +15,46 @@ import org.jeecgframework.poi.excel.annotation.Excel;
@AllArgsConstructor
public class AllProjectMoneyExcel {
@Excel(name = "类型名称")
@Excel(name = "合同",width=15,height=15)
private String category;
@Excel(name="")
@Excel(name="1",width=15,height=15)
private String january;
@Excel(name="")
@Excel(name="2",width=15,height=15)
private String february;
@Excel(name="")
@Excel(name="3",width=15,height=15)
private String march;
@Excel(name="")
@Excel(name="4",width=15,height=15)
private String april;
@Excel(name="")
@Excel(name="5",width=15,height=15)
private String may;
@Excel(name="")
@Excel(name="6",width=15,height=15)
private String june;
@Excel(name="")
@Excel(name="7",width=15,height=15)
private String july;
@Excel(name="")
@Excel(name="8",width=15,height=15)
private String august;
@Excel(name="")
@Excel(name="9",width=15,height=15)
private String september;
@Excel(name="")
@Excel(name="10",width=15,height=15)
private String october;
@Excel(name="十一")
@Excel(name="11",width=15,height=15)
private String november;
@Excel(name="十二")
@Excel(name="12",width=15,height=15)
private String december ;
@Excel(name="总计")
@Excel(name="总计",width=15,height=15)
private String total;
public AllProjectMoneyExcel(String category, String total) {