1、增加告警消除时间
This commit is contained in:
parent
af5067159e
commit
5a9895c2a1
@ -281,6 +281,8 @@ public class WarningServiceImpl implements WarningService {
|
||||
QueryWrapper<WarningMsg> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("deviceid",status.getDeviceid());
|
||||
queryWrapper.eq("code",warningCode);
|
||||
queryWrapper.orderByDesc("createtime");
|
||||
queryWrapper.last("limit 1");
|
||||
WarningMsg warningMsg = warningMsgMapper.selectOne(queryWrapper);
|
||||
if(warningMsg!=null){
|
||||
logger.info("update warningMsg {}",warningMsg.getId());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user