|
|
@@ -125,8 +125,9 @@ public class ExcelPoiUtils {
|
|
|
// bytes = os.toByteArray();
|
|
|
// 判断路径是否存在 类型 + 年月+ 日期
|
|
|
LocalDate currentDate = LocalDate.now();
|
|
|
- String dirPath = ConfigStatic.getExcelFolder() + "/" + title + "/" + "/" + currentDate.getYear()
|
|
|
+ String returnPath = title + "/" + currentDate.getYear()
|
|
|
+ "-" + currentDate.getMonthValue() + "/" + currentDate.getDayOfMonth();
|
|
|
+ String dirPath = ConfigStatic.getExcelFolder() + "/" + returnPath;
|
|
|
File dir = new File(dirPath);
|
|
|
if (!dir.exists() && !dir.isDirectory()) {
|
|
|
dir.mkdirs();
|
|
|
@@ -143,7 +144,7 @@ public class ExcelPoiUtils {
|
|
|
e.printStackTrace();
|
|
|
return "";
|
|
|
}
|
|
|
- return filename;
|
|
|
+ return returnPath + "/" + filename;
|
|
|
}
|
|
|
|
|
|
/**
|