소스 검색

深光查询参数

lyhzzz 1 년 전
부모
커밋
ba9c007974
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/fdkankan/manage/httpClient/service/LaserService.java

+ 1 - 1
src/main/java/com/fdkankan/manage/httpClient/service/LaserService.java

@@ -214,7 +214,7 @@ public class LaserService {
     private List<String> setSnCodes(List<CameraDetail> cameraDetails) {
     private List<String> setSnCodes(List<CameraDetail> cameraDetails) {
         if(cameraDetails != null && cameraDetails.size() >0){
         if(cameraDetails != null && cameraDetails.size() >0){
             Set<Long> cameraIds = cameraDetails.stream()
             Set<Long> cameraIds = cameraDetails.stream()
-                    .filter(entity -> entity.getType() == 10).map(CameraDetail::getCameraId).collect(Collectors.toSet());
+                    .filter(entity -> entity.getType() == 10 || entity.getType() == 11).map(CameraDetail::getCameraId).collect(Collectors.toSet());
             if(cameraIds.size() >0){
             if(cameraIds.size() >0){
                 List<Camera> cameraList = cameraService.listByIds(cameraIds);
                 List<Camera> cameraList = cameraService.listByIds(cameraIds);
                 return cameraList.stream().map(Camera::getSnCode).collect(Collectors.toList());
                 return cameraList.stream().map(Camera::getSnCode).collect(Collectors.toList());