|
|
|
@ -188,15 +188,16 @@ public class CameraService extends ServiceImpl<CameraMapper,Camera> {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<Camera> allCameras1(){
|
|
|
|
public List<Camera> allCameras1(){
|
|
|
|
|
|
|
|
int count = configProperties.getVideoStyleConfig().getVideoStyleColumn() * configProperties.getVideoStyleConfig().getVideoStyleRow();
|
|
|
|
|
|
|
|
int group = 0 ;
|
|
|
|
List<Camera> cameras = cameraMapper.selectList(new QueryWrapper<>());
|
|
|
|
List<Camera> cameras = cameraMapper.selectList(new QueryWrapper<Camera>().last("limit "+group+","+count));
|
|
|
|
return cameras;
|
|
|
|
return cameras;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<Camera> allCameras2(){
|
|
|
|
public List<Camera> allCameras2(){
|
|
|
|
|
|
|
|
int count = configProperties.getVideoStyleConfig().getVideoStyleColumn() * configProperties.getVideoStyleConfig().getVideoStyleRow();
|
|
|
|
List<Camera> cameras = cameraMapper.selectByMap(new HashMap<>());
|
|
|
|
int group = 1* count;
|
|
|
|
|
|
|
|
List<Camera> cameras = cameraMapper.selectList(new QueryWrapper<Camera>().last("limit "+group+","+count));
|
|
|
|
return cameras;
|
|
|
|
return cameras;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|