| | |
| | | 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; |
| | | |
| | |
| | | */ |
| | | @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)); |
| | | } |
| | | |
| | | } |