Browse Source

修改摄像头 分页查询接口

tags/v1.2.0^2
wanghaoran 1 year ago
parent
commit
7c44ab4f40
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/camera/CameraServiceImpl.java

+ 1
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/service/camera/CameraServiceImpl.java View File

@@ -104,6 +104,7 @@ public class CameraServiceImpl extends BaseServiceImpl<CameraMapper, Camera> imp
IPage<Camera> page = new Page<>(request.getPage(), request.getLimit());
IPage<Camera> pageData = cameraMapper.selectPage(page, new LambdaQueryWrapper<Camera>()
.eq(Camera::getMark, MarkTypeEnum.VALID.getCode())
.eq(Camera::getTenantId, ShiroUtils.getTenantId())
.like(StringUtils.isNotEmpty(request.getCameraName()), Camera::getCameraName, request.getCameraName())
.orderByDesc(Camera::getCreateTime));
for (Camera record : pageData.getRecords()) {

Loading…
Cancel
Save