Ari 소스 오픈 도구 - easy Excel

1423 단어 솔루션
1. esayExcel 도구 가져오기

        com.alibaba
        easyexcel
         1.1.1
 

2. 내보낸 객체에 해당하는 메모 더하기

    @ExcelProperty(value = " ",index = 0)
    private BigDecimal consumeHours ;

    @ExcelProperty(value = " 2 ",index = 1)
    private BigDecimal consumeHoursFees ;

    // 
    @ExcelProperty(value = " 3 ",index = 2)
    private BigDecimal scheduledHours;

    // 
    @ExcelProperty(value = " 4 ",index = 3)
    private BigDecimal estimatedRevenue;

    // 
    @ExcelProperty(value = " 5 ",index = 4)
    private BigDecimal differentialIncome ;

    // 
    @ExcelProperty(value = " 6 ",index = 5)
    private BigDecimal revenue;

  

 List list = (List) this.byCity(model).getData();
 String fileName = " " + DateUtils.getNow();
response.setHeader("Content-disposition", "attachment;filename=" + java.net.URLEncoder.encode(fileName, "UTF-8") + ".xlsx");
 EasyExcel.write(response.getOutputStream(), RevenuePerformanceForCityDto.class).
                        sheet(" ").
                        doWrite(list);

 
 

좋은 웹페이지 즐겨찾기