|
|
@ -102,7 +102,6 @@ public class ExcelUtils { |
|
|
|
*/ |
|
|
|
public static <T> String writeLocalFile(String fileName, String sheetName, List<T> dataList) throws FileNotFoundException { |
|
|
|
WebProperties webProperties = SpringUtil.getBean(WebProperties.class); |
|
|
|
fileName = fileName + LocalDateTime.now().toEpochSecond(ZoneOffset.of("+8")); |
|
|
|
File file = ResourceUtils.getFile( webProperties.getProfile() + "/" + fileName); |
|
|
|
EasyExcel.write(file).sheet(sheetName).doWrite(dataList); |
|
|
|
return Constant.RESOURCE_PREFIX + fileName; |
|
|
|