From b06c210f54fae630bbd25849cae7ed39cd550ff9 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 20 十一月 2024 18:10:16 +0800
Subject: [PATCH] 预警配置

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/dao/MmPredictAlarmConfigDao.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/dao/MmPredictAlarmConfigDao.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/dao/MmPredictAlarmConfigDao.java
index 2fc2bb5..47fe438 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/dao/MmPredictAlarmConfigDao.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/dao/MmPredictAlarmConfigDao.java
@@ -1,8 +1,11 @@
 package com.iailab.module.model.mcs.pre.dao;
 
+import com.iailab.framework.common.pojo.PageResult;
 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
+import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
 import com.iailab.framework.tenant.core.db.dynamic.TenantDS;
 import com.iailab.module.model.mcs.pre.entity.MmPredictAlarmConfigEntity;
+import com.iailab.module.model.mcs.pre.vo.MmPredictAlarmConfigPageReqVO;
 import org.apache.ibatis.annotations.Mapper;
 
 /**
@@ -13,4 +16,11 @@
 @TenantDS
 @Mapper
 public interface MmPredictAlarmConfigDao extends BaseMapperX<MmPredictAlarmConfigEntity> {
+
+    default PageResult<MmPredictAlarmConfigEntity> selectPage(MmPredictAlarmConfigPageReqVO reqVO) {
+        return selectPage(reqVO, new LambdaQueryWrapperX<MmPredictAlarmConfigEntity>()
+                .likeIfPresent(MmPredictAlarmConfigEntity::getTitle, reqVO.getTitle())
+                .likeIfPresent(MmPredictAlarmConfigEntity::getAlarmObj, reqVO.getAlarmObj())
+                .orderByDesc(MmPredictAlarmConfigEntity::getCreateTime));
+    }
 }

--
Gitblit v1.9.3