提交 | 用户 | 时间
|
ce910c
|
1 |
package com.iailab.module.data.dev.dao; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
|
4 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
5 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
6 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
|
7 |
import com.iailab.module.data.dev.controller.admin.camera.vo.DevCameraPageReqVO; |
|
8 |
import com.iailab.module.data.dev.dto.DevCameraDTO; |
|
9 |
import com.iailab.module.data.dev.entity.DevCameraEntity; |
|
10 |
import org.apache.ibatis.annotations.Mapper; |
|
11 |
|
|
12 |
import java.util.List; |
|
13 |
|
|
14 |
/** |
|
15 |
* @author PanZhibao |
|
16 |
* @Description |
|
17 |
* @createTime 2024年02月27日 |
|
18 |
*/ |
|
19 |
@TenantDS |
|
20 |
@Mapper |
|
21 |
public interface DevCameraDao extends BaseMapperX<DevCameraEntity> { |
|
22 |
|
|
23 |
default PageResult<DevCameraEntity> selectPage(DevCameraPageReqVO pageReqVO) { |
|
24 |
return selectPage(pageReqVO, new LambdaQueryWrapperX<DevCameraEntity>() |
|
25 |
.eq(DevCameraEntity::getNvrId, pageReqVO.getNvrId()) |
|
26 |
.likeIfPresent(DevCameraEntity::getLocation, pageReqVO.getLocation()) |
|
27 |
.orderByDesc(DevCameraEntity::getId)); |
|
28 |
} |
|
29 |
|
|
30 |
List<DevCameraDTO> apiCameraList(); |
|
31 |
|
|
32 |
} |