|
|
@@ -1,6 +1,7 @@
|
|
|
package org.springblade.business.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.annotations.*;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -112,6 +113,9 @@ public class WeatherController {
|
|
|
if (area == null) {
|
|
|
return R.data(-1, null, "数据操作失败");
|
|
|
}
|
|
|
+ if (area.getId() == null || area.getId() <= 0) {
|
|
|
+ return R.data(new Page<>());
|
|
|
+ }
|
|
|
weatherMap.put("contractAreaId", area.getId());
|
|
|
|
|
|
if (StringUtils.isNotEmpty(vo.getRecordTime())) {
|