|
@@ -100,6 +100,7 @@ public class WcBlackoutPlanServiceImpl extends AbstractCrudService<WcBlackoutPla
|
|
|
|
|
|
@Override
|
|
|
public String outagePlanListExport(String startTime, String endTime, Integer type) {
|
|
|
+ DateFormat dFormat = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
|
|
|
Workbook workbook = null;
|
|
|
File file = null;
|
|
|
try {
|
|
@@ -111,7 +112,7 @@ public class WcBlackoutPlanServiceImpl extends AbstractCrudService<WcBlackoutPla
|
|
|
return new ArrayList<>(BeanMapperUtils.mapList(plannedOutageList, WcBlackoutPlanOneVo.class, WcBlackoutPlanOneExportVo.class));
|
|
|
}, null);
|
|
|
if (null != workbook) {
|
|
|
- file = FileUtils.getFile(GlobalUtils.getTempBaseDir(), String.format("%s-%s.xlsx", "停电计划列表", System.currentTimeMillis() + ""));
|
|
|
+ file = FileUtils.getFile(GlobalUtils.getTempBaseDir(), String.format("%s-%s.xlsx", "停电计划列表", dFormat.format(System.currentTimeMillis()) + ""));
|
|
|
FileUtils.createFile(file.getAbsolutePath());
|
|
|
FileOutputStream allListingFileOutputStream = new FileOutputStream(file);
|
|
|
workbook.write(allListingFileOutputStream);
|