|
@@ -45,9 +45,9 @@ public class AppUserService {
|
|
|
Set<Long> roleIds = userRoleService.getByUser(user);
|
|
|
Long cameraCount = 0L;
|
|
|
if(!roleIds.contains(5L) && !roleIds.contains(6L) && !roleIds.contains(1L)){
|
|
|
- cameraCount = cameraDetailService.getCountByCompanyId(user.getCompanyId(),null);
|
|
|
+ cameraCount = cameraDetailService.getCountByCompanyId(user.getCompanyId(),cameraType);
|
|
|
}else {
|
|
|
- cameraCount = cameraDetailService.getCountByUserId(user.getId(),null);
|
|
|
+ cameraCount = cameraDetailService.getCountByUserId(user.getId(),cameraType);
|
|
|
}
|
|
|
|
|
|
Long proCount = sceneProService.getCountByUserId(user.getId(), cameraType);
|