From b866b2874338c6600702da5f806945508ade3c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Tue, 16 Dec 2025 11:29:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=EF=BC=8C=E6=8D=A2=E7=83=AD?= =?UTF-8?q?=E7=AB=99=E5=88=97=E8=A1=A8=E6=95=B0=E6=8D=AE=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=9A=84sql=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/exportapi/api/HomeApi.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/exportapi/api/HomeApi.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/exportapi/api/HomeApi.java index b38587e..1d656d5 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/exportapi/api/HomeApi.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/exportapi/api/HomeApi.java @@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; +import java.util.Calendar; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -122,12 +123,17 @@ public class HomeApi { public Result glfzb(HomeApiEntity dto) { Map result = new HashMap<>(); + Calendar c = Calendar.getInstance(); + c.add(Calendar.HOUR_OF_DAY,-1); + //城区锅炉房供回水温度 QueryWrapper qw = new QueryWrapper<>(); qw.eq("del_flag","0"); qw.isNotNull("view004"); + qw.gt("datatime",c.getTime()); // qw.eq(Heatanalysis::getRegionType,"城区"); qw.orderByAsc("id"); + List list = heatanalysisService.list(qw); result.put("data",list); return Result.ok(result);