From 4be7d863a161b64f8592a789d699e807545e7dc6 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 15 十一月 2024 16:46:12 +0800
Subject: [PATCH] 计划数据

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

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/kio/dao/ChannelKioDeviceDao.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/kio/dao/ChannelKioDeviceDao.java
index be70fb5..31fd6c4 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/kio/dao/ChannelKioDeviceDao.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/kio/dao/ChannelKioDeviceDao.java
@@ -1,16 +1,25 @@
 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.ChannelKioDeviceEntity;
+import com.iailab.module.data.channel.kio.vo.KioDevicePageReqVO;
 import org.apache.ibatis.annotations.Mapper;
 
 /**
- * @author PanZhibao
+ * @author lirm
  * @Description
- * @createTime 2024年06月04日
+ * @createTime 2024年08月26日
  */
 @TenantDS
 @Mapper
-public interface ChannelKioDeviceDao extends BaseDao<ChannelKioDeviceEntity> {
+public interface ChannelKioDeviceDao extends BaseMapperX<ChannelKioDeviceEntity> {
+
+    default PageResult<ChannelKioDeviceEntity> selectPage(KioDevicePageReqVO reqVO) {
+        return selectPage(reqVO, new LambdaQueryWrapperX<ChannelKioDeviceEntity>()
+                .likeIfPresent(ChannelKioDeviceEntity::getInstanceName, reqVO.getInstanceName())
+                .orderByDesc(ChannelKioDeviceEntity::getCreateTime));
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3