update 会所收入导出功能
This commit is contained in:
+4
-4
@@ -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));
|
||||
|
||||
+14
-14
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user