|
|
|
|
@ -36,6 +36,7 @@ import java.time.LocalDateTime;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.concurrent.CountDownLatch;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
@Slf4j
|
|
|
|
|
@ -160,9 +161,44 @@ public class CameraService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Camera> allCameras(){
|
|
|
|
|
|
|
|
|
|
return cameraMapper.selectByMap(new HashMap<>());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* HD01 - HD05
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public List<Camera> allCameras1(){
|
|
|
|
|
|
|
|
|
|
List<Camera> cameras = cameraMapper.selectByMap(new HashMap<>());
|
|
|
|
|
return cameras.stream().filter(camera -> {
|
|
|
|
|
int index = Integer.valueOf(camera.getName().substring(2, 4));
|
|
|
|
|
boolean b = index >= 1 && index <= 5;
|
|
|
|
|
return b;
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Camera> allCameras2(){
|
|
|
|
|
|
|
|
|
|
List<Camera> cameras = cameraMapper.selectByMap(new HashMap<>());
|
|
|
|
|
return cameras.stream().filter(camera -> {
|
|
|
|
|
int index = Integer.valueOf(camera.getName().substring(2, 4));
|
|
|
|
|
boolean b = index >= 6 && index <= 10;
|
|
|
|
|
return b;
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Camera> allCameras3(){
|
|
|
|
|
|
|
|
|
|
List<Camera> cameras = cameraMapper.selectByMap(new HashMap<>());
|
|
|
|
|
return cameras.stream().filter(camera -> {
|
|
|
|
|
int index = Integer.valueOf(camera.getName().substring(2, 4));
|
|
|
|
|
boolean b = index >= 11 && index <= 15;
|
|
|
|
|
return b;
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导入IO配置
|
|
|
|
|
*
|
|
|
|
|
|