瀏覽代碼

更新告警信息数量

master
牧羊人 4 年之前
父節點
當前提交
fbb94fca5c
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      src/main/java/com/taauav/front/service/impl/UserWaterAlarmServiceImpl.java

+ 1
- 0
src/main/java/com/taauav/front/service/impl/UserWaterAlarmServiceImpl.java 查看文件

@@ -214,6 +214,7 @@ public class UserWaterAlarmServiceImpl extends BaseServiceImpl<UserWaterAlarmMap
QueryWrapper<TauvWaterAlarm> queryWrapper = new QueryWrapper<>();
queryWrapper.in("status", new Integer[]{2, 4, 5});
queryWrapper.eq("mark", 1);
queryWrapper.last(String.format("limit %s", num));
List<TauvWaterAlarm> waterAlarmList = userWaterAlarmMapper.selectList(queryWrapper);
return response.success(waterAlarmList);
}

Loading…
取消
儲存