|
|
@ -29,10 +29,7 @@ import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.net.URLEncoder; |
|
|
|
import java.net.URLEncoder; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.*; |
|
|
|
import java.util.Comparator; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -254,7 +251,11 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, CarEntity> implements |
|
|
|
.registerConverter(new LongStringConverter()) |
|
|
|
.registerConverter(new LongStringConverter()) |
|
|
|
.registerWriteHandler(new SimpleColumnWidthStyleStrategy(25)) |
|
|
|
.registerWriteHandler(new SimpleColumnWidthStyleStrategy(25)) |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
|
|
|
|
|
// 排除时间字段
|
|
|
|
|
|
|
|
Set<String> excludeSets = new HashSet<>(); |
|
|
|
|
|
|
|
excludeSets.add("createTime"); |
|
|
|
WriteSheet writeSheet = EasyExcel.writerSheet(1, "年度里程统计表").head(CarMilesYearVO.class) |
|
|
|
WriteSheet writeSheet = EasyExcel.writerSheet(1, "年度里程统计表").head(CarMilesYearVO.class) |
|
|
|
|
|
|
|
.excludeColumnFieldNames(excludeSets) |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
|
excelWriter.write(list, writeSheet); |
|
|
|
excelWriter.write(list, writeSheet); |
|
|
|
excelWriter.finish(); |
|
|
|
excelWriter.finish(); |
|
|
|