package com.iailab.module.data.video.dao; 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; /** * @author PanZhibao * @Description * @createTime 2024年02月27日 */ @TenantDS @Mapper public interface ImageDao extends BaseMapperX { default PageResult selectPage(ImagePageReqVO pageReqVO) { return selectPage(pageReqVO, new LambdaQueryWrapperX() .likeIfPresent(ImageEntity::getCameraId, pageReqVO.getCameraId()) .orderByDesc(ImageEntity::getId)); } }