From 133c59573309654e5d1c6321d6507c63621c1a18 Mon Sep 17 00:00:00 2001 From: yangzhe123 <2824096059@qq.com> Date: Mon, 10 Nov 2025 15:40:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=EF=BC=8C=E9=98=80?= =?UTF-8?q?=E9=97=A8=E7=9B=91=E6=8E=A7=E6=97=A5=E5=BF=97=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/hsz/service/GateValveRealService.java | 8 ++++---- .../com/gunshi/project/hsz/timetask/DataTaskHsz.java | 10 ++++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/gunshi/project/hsz/service/GateValveRealService.java b/src/main/java/com/gunshi/project/hsz/service/GateValveRealService.java index 6948506..38af924 100644 --- a/src/main/java/com/gunshi/project/hsz/service/GateValveRealService.java +++ b/src/main/java/com/gunshi/project/hsz/service/GateValveRealService.java @@ -112,10 +112,10 @@ public class GateValveRealService extends ServiceImpl qw = new LambdaQueryWrapper(); - qw.eq(GateValveOplogVo::getValveCode,code); - qw.orderByDesc(GateValveOplogVo::getTm).last("LIMIT 1"); - List list = gateValveOplogAutoDao.list(); + LambdaQueryWrapper qw = new LambdaQueryWrapper(); + qw.eq(GateValveOplog::getValveCode,code); + qw.orderByDesc(GateValveOplog::getTm).last("LIMIT 1"); + List list = gateValveOplogAutoDao.list(qw); return list.isEmpty() ? null : list.get(0); } diff --git a/src/main/java/com/gunshi/project/hsz/timetask/DataTaskHsz.java b/src/main/java/com/gunshi/project/hsz/timetask/DataTaskHsz.java index 2876202..fa6e3ef 100644 --- a/src/main/java/com/gunshi/project/hsz/timetask/DataTaskHsz.java +++ b/src/main/java/com/gunshi/project/hsz/timetask/DataTaskHsz.java @@ -119,8 +119,9 @@ public class DataTaskHsz { * @auther: cxw * @date: 2024-09-20, 周五, 17:07:23 */ - @Async - @Scheduled(fixedRate = 5, timeUnit = TimeUnit.MINUTES) +// @Async +// @Scheduled(fixedRate = 5, timeUnit = TimeUnit.MINUTES) + @Deprecated(since = "改在hsz-datasync中同步") public void getPptnData() { Date now = new Date(); System.out.println("雨情实时定时任务,执行时间:" + sdf.format(now)); @@ -242,8 +243,9 @@ public class DataTaskHsz { * @auther: cxw * @date: 2024-09-23, 周一, 11:23:04 */ - @Async - @Scheduled(fixedRate = 5, timeUnit = TimeUnit.MINUTES) +// @Async +// @Scheduled(fixedRate = 5, timeUnit = TimeUnit.MINUTES) + @Deprecated(since = "改在hsz-datasync中同步") public void getRiverData() { Date now = new Date(); System.out.println("水情历史定时任务,执行时间:" + sdf.format(now));