视屏墙修改

bozhou-古井贡酒
LAPTOP-S9HJSOEB\昊天 2 years ago
parent 1960790526
commit f245bf582c

@ -54,6 +54,12 @@ public class RealTimeController {
return Result.success(cameraService.allCameras(2)); return Result.success(cameraService.allCameras(2));
} }
@GetMapping("/allCameras/{page}")
@ApiOperation(value = "全部球机")
//@SessionHandler
public Result<List<Camera>> allCamerasPage(@PathVariable Integer page) {
return Result.success(cameraService.allCameras(page));
}
@GetMapping("/wallStyle") @GetMapping("/wallStyle")
@ApiOperation(value = "视频墙样式") @ApiOperation(value = "视频墙样式")
//@SessionHandler //@SessionHandler

@ -170,7 +170,7 @@ public class CameraService {
public List<Camera> allCameras(int i){ public List<Camera> allCameras(int i){
int count = (configProperties.getVideoStyleConfig().getVideoStyleColumn()) * (configProperties.getVideoStyleConfig().getVideoStyleRow()); int count = (configProperties.getVideoStyleConfig().getVideoStyleColumn()) * (configProperties.getVideoStyleConfig().getVideoStyleRow());
int i1 = count * i; int i1 = count * (i-1);
return cameraMapper.selectList(new QueryWrapper<Camera>().last("limit "+i1+" ,"+count)); return cameraMapper.selectList(new QueryWrapper<Camera>().last("limit "+i1+" ,"+count));
} }

Loading…
Cancel
Save