提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.module.data.video.dao; |
H |
2 |
|
08b6a5
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
H |
4 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
5 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
149dd0
|
6 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
08b6a5
|
7 |
import com.iailab.module.data.video.controller.admin.camera.vo.ImagePageReqVO; |
149dd0
|
8 |
import com.iailab.module.data.video.entity.ImageEntity; |
H |
9 |
import org.apache.ibatis.annotations.Mapper; |
|
10 |
|
|
11 |
/** |
|
12 |
* @author PanZhibao |
|
13 |
* @Description |
|
14 |
* @createTime 2024年02月27日 |
|
15 |
*/ |
|
16 |
@TenantDS |
|
17 |
@Mapper |
08b6a5
|
18 |
public interface ImageDao extends BaseMapperX<ImageEntity> { |
H |
19 |
|
|
20 |
default PageResult<ImageEntity> selectPage(ImagePageReqVO pageReqVO) { |
|
21 |
return selectPage(pageReqVO, new LambdaQueryWrapperX<ImageEntity>() |
|
22 |
.likeIfPresent(ImageEntity::getCameraId, pageReqVO.getCameraId()) |
|
23 |
.orderByDesc(ImageEntity::getId)); |
|
24 |
} |
|
25 |
|
149dd0
|
26 |
} |