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));