From 7cbee82d2572041332eb69bc2d0d9c6a93492efe Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期二, 15 十月 2024 11:52:48 +0800
Subject: [PATCH] HttpCollectorIhDB

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/kio/dao/ChannelKioTagDao.java |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/kio/dao/ChannelKioTagDao.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/kio/dao/ChannelKioTagDao.java
index d73ee58..596243b 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/kio/dao/ChannelKioTagDao.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/kio/dao/ChannelKioTagDao.java
@@ -1,14 +1,28 @@
 package com.iailab.module.data.channel.kio.dao;
 
 import com.iailab.framework.common.dao.BaseDao;
+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.data.channel.kio.entity.ChannelKioTagEntity;
+import com.iailab.module.data.channel.kio.entity.ChannelKioTagEntity;
+import com.iailab.module.data.channel.kio.vo.KioDevicePageReqVO;
+import com.iailab.module.data.channel.kio.vo.KioTagPageReqVO;
 import org.apache.ibatis.annotations.Mapper;
 
 /**
- * @author PanZhibao
+ * @author lirm
  * @Description
- * @createTime 2024年06月05日
+ * @createTime 2024年08月26日
  */
+@TenantDS
 @Mapper
-public interface ChannelKioTagDao extends BaseDao<ChannelKioTagEntity> {
+public interface ChannelKioTagDao extends BaseMapperX<ChannelKioTagEntity> {
+    default PageResult<ChannelKioTagEntity> selectPage(KioTagPageReqVO reqVO) {
+        return selectPage(reqVO, new LambdaQueryWrapperX<ChannelKioTagEntity>()
+                .likeIfPresent(ChannelKioTagEntity::getTagName, reqVO.getTagName())
+                .likeIfPresent(ChannelKioTagEntity::getDevice, reqVO.getDevice())
+                .orderByDesc(ChannelKioTagEntity::getCreateTime));
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3