提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.module.data.video.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.video.controller.admin.camera.vo.CameraPageReqVO; |
|
8 |
import com.iailab.module.data.video.dto.CameraDTO; |
|
9 |
import com.iailab.module.data.video.entity.CameraEntity; |
|
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 CameraDao extends BaseMapperX<CameraEntity> { |
|
22 |
|
|
23 |
default PageResult<CameraEntity> selectPage(CameraPageReqVO pageReqVO) { |
|
24 |
return selectPage(pageReqVO, new LambdaQueryWrapperX<CameraEntity>() |
|
25 |
.eqIfPresent(CameraEntity::getNvrId, pageReqVO.getNvrId()) |
|
26 |
.eqIfPresent(CameraEntity::getBrand, pageReqVO.getBrand()) |
|
27 |
.eqIfPresent(CameraEntity::getType, pageReqVO.getType()) |
|
28 |
.likeIfPresent(CameraEntity::getCode, pageReqVO.getCode()) |
|
29 |
.likeIfPresent(CameraEntity::getIp, pageReqVO.getIp()) |
|
30 |
.likeIfPresent(CameraEntity::getDevice, pageReqVO.getDevice()) |
|
31 |
.likeIfPresent(CameraEntity::getLocation, pageReqVO.getLocation()) |
|
32 |
.orderByDesc(CameraEntity::getId)); |
|
33 |
} |
|
34 |
|
|
35 |
List<CameraDTO> apiCameraList(); |
|
36 |
|
|
37 |
} |