|
|
@ -166,7 +166,7 @@ public class DeviceStatus { |
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
|
|
|
String formattedDateTime = dateTime.format(formatter); |
|
|
|
//修改成服务器地址
|
|
|
|
String filePath = "/Users/mengfanfeng/Downloads/excel/"+formattedDateTime+"--deviceStatus.xlsx"; |
|
|
|
String filePath = "/home/excel/"+formattedDateTime+"--deviceStatus.xlsx"; |
|
|
|
try (Workbook workbook = new XSSFWorkbook()) { |
|
|
|
FileOutputStream fileOut = new FileOutputStream(filePath); |
|
|
|
workbook.write(fileOut); |
|
|
|