修改了,阀门监控日志查询的BUG
parent
25902eed5c
commit
133c595733
|
|
@ -112,10 +112,10 @@ public class GateValveRealService extends ServiceImpl<GateValveRealMapper, GateV
|
|||
if(StringUtils.isBlank(code)){
|
||||
return null;
|
||||
}
|
||||
LambdaQueryWrapper<GateValveOplogVo> qw = new LambdaQueryWrapper();
|
||||
qw.eq(GateValveOplogVo::getValveCode,code);
|
||||
qw.orderByDesc(GateValveOplogVo::getTm).last("LIMIT 1");
|
||||
List<GateValveOplog> list = gateValveOplogAutoDao.list();
|
||||
LambdaQueryWrapper<GateValveOplog> qw = new LambdaQueryWrapper();
|
||||
qw.eq(GateValveOplog::getValveCode,code);
|
||||
qw.orderByDesc(GateValveOplog::getTm).last("LIMIT 1");
|
||||
List<GateValveOplog> list = gateValveOplogAutoDao.list(qw);
|
||||
return list.isEmpty() ? null : list.get(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue