浏览代码

天气台账下载

cr 1 天之前
父节点
当前提交
55647eb656

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

@@ -166,15 +166,15 @@ public class WeatherController {
     @SneakyThrows
     @PostMapping(value = "/downloadWeatherExcel")
     @ApiOperationSupport(order = 13)
-    @ApiOperation(value = "客户端-下载元素表对应的excel模板")
+    @ApiOperation(value = "客户端-下载天气台账excel模板")
     public ResponseEntity<Resource> downloadNeiYe(
-            @RequestParam String contract,
+            @RequestParam String contractId,
             @RequestParam String startTime,
             @RequestParam String endTime,
             HttpServletResponse response) {
 
         // 1. 查询区域信息
-        ProjectContractArea area = this.projectContractAreaClient.queryContractAreaByContractId(contract);
+        ProjectContractArea area = this.projectContractAreaClient.queryContractAreaByContractId(contractId);
         // 2. 查询天气数据
         List<WeatherInfo> list = this.weatherInfoService.getWeatherInfoListByRecordTime(area.getId(), startTime, endTime);