Browse Source

--修改文件上传路径

develop
mengff 10 months ago
parent
commit
1f8db5f784
  1. 2
      zc-business/src/main/java/com/zc/business/controller/DeviceStatus.java

2
zc-business/src/main/java/com/zc/business/controller/DeviceStatus.java

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

Loading…
Cancel
Save