|
@@ -55,12 +55,12 @@ public class LaserController extends BaseController {
|
|
|
throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
|
|
|
- List<Long> userIds = userService.getLikeUserName(phone);
|
|
|
+ List<Long> companyIds = userService.getCompanyIdsLikeUserName(phone);
|
|
|
HashMap<String,Object> map = new HashMap<>();
|
|
|
Set<String> snCodeSet = new HashSet<>();
|
|
|
map.put("phone",phone);
|
|
|
map.put("snCodes",snCodeSet);
|
|
|
- if(userIds.size() <=0){
|
|
|
+ if(companyIds.size() <=0){
|
|
|
return Result.success(map);
|
|
|
}
|
|
|
List<CameraAppVo> camera = new ArrayList<>();
|
|
@@ -68,18 +68,18 @@ public class LaserController extends BaseController {
|
|
|
String[] split = sceneSource.split(",");
|
|
|
for (String resource : split) {
|
|
|
if("4".equals(resource)){
|
|
|
- camera.addAll( cameraDetailService.getListByUserIdsAndType(userIds, 10));
|
|
|
+ camera.addAll( cameraDetailService.getListByCompanyIdsAndType(companyIds, 10));
|
|
|
}
|
|
|
if("5".equals(resource)){
|
|
|
- camera.addAll(cameraDetailService.getListByUserIdsAndType(userIds, 11));
|
|
|
+ camera.addAll(cameraDetailService.getListByCompanyIdsAndType(companyIds, 11));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if("4".equals(sceneSource)){
|
|
|
- camera = cameraDetailService.getListByUserIdsAndType(userIds, 10);
|
|
|
+ camera = cameraDetailService.getListByCompanyIdsAndType(companyIds, 10);
|
|
|
}
|
|
|
if("5".equals(sceneSource)){
|
|
|
- camera = cameraDetailService.getListByUserIdsAndType(userIds, 11);
|
|
|
+ camera = cameraDetailService.getListByCompanyIdsAndType(companyIds, 11);
|
|
|
}
|
|
|
if(camera.size() >0){
|
|
|
snCodeSet = camera.stream().map(CameraAppVo::getSnCode).collect(Collectors.toSet());
|