From 08b6a55a3a111aaee9842999b85afa60b6d61dc3 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 14 十一月 2024 15:29:38 +0800 Subject: [PATCH] 大华及海康摄像头截图功能开发 --- 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