Browse Source

导入下载错误数据excelURl修改

master
chenfang 2 years ago
parent
commit
770759e015
  1. 1
      win-framework/win-spring-boot-starter-excel/src/main/java/com/win/framework/excel/core/util/ExcelUtils.java

1
win-framework/win-spring-boot-starter-excel/src/main/java/com/win/framework/excel/core/util/ExcelUtils.java

@ -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;

Loading…
Cancel
Save