From 0cbbe2c1cbfbf73e02e1796d921c2911c96d370b Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 23 十二月 2024 11:46:31 +0800
Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/iailab-plat

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dao/ImageDao.java |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dao/ImageDao.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dao/ImageDao.java
index 065b975..463a031 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dao/ImageDao.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dao/ImageDao.java
@@ -1,7 +1,10 @@
 package com.iailab.module.data.video.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.video.controller.admin.camera.vo.ImagePageReqVO;
 import com.iailab.module.data.video.entity.ImageEntity;
 import org.apache.ibatis.annotations.Mapper;
 
@@ -12,5 +15,12 @@
  */
 @TenantDS
 @Mapper
-public interface ImageDao extends BaseDao<ImageEntity> {
+public interface ImageDao extends BaseMapperX<ImageEntity> {
+
+    default PageResult<ImageEntity> selectPage(ImagePageReqVO pageReqVO) {
+        return selectPage(pageReqVO, new LambdaQueryWrapperX<ImageEntity>()
+                .likeIfPresent(ImageEntity::getCameraId, pageReqVO.getCameraId())
+                .orderByDesc(ImageEntity::getId));
+    }
+    
 }
\ No newline at end of file

--
Gitblit v1.9.3