Parcourir la source

天气台账下载

cr il y a 1 jour
Parent
commit
09fbc70536

+ 2 - 1
blade-service/blade-business/src/main/java/org/springblade/business/controller/WeatherController.java

@@ -189,7 +189,8 @@ public class WeatherController {
         List<WeatherInfo> list = this.weatherInfoService.getWeatherInfoListByRecordTime(area.getId(), startTime, endTime);
 
         // 3. 模板文件校验
-        String templatePath = "C:\\upload\\excel\\weather.xlsx";
+        String templatePath = "/mnt/sdc/Users/hongchuangyanfa/Desktop/excel/weather.xlsx";
+        //String templatePath = "C:\\upload\\excel\\weather.xlsx";
         File templateFile = new File(templatePath);
         if (!templateFile.exists() || !templateFile.isFile()) {
             throw new RuntimeException("Excel模板文件不存在:" + templatePath);