|
@@ -143,9 +143,9 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
Set<Long> roleIds = userRoleService.getByUser(user);
|
|
Set<Long> roleIds = userRoleService.getByUser(user);
|
|
Long cameraCount = 0L;
|
|
Long cameraCount = 0L;
|
|
if(!roleIds.contains(5L) && !roleIds.contains(6L) && !roleIds.contains(1L)){
|
|
if(!roleIds.contains(5L) && !roleIds.contains(6L) && !roleIds.contains(1L)){
|
|
- cameraCount = cameraDetailService.getCountByCompanyId(user.getCompanyId(),null);
|
|
|
|
|
|
+ cameraCount = cameraDetailService.getCountByUserId(user.getCompanyId(),user.getId(),null);
|
|
}else {
|
|
}else {
|
|
- cameraCount = cameraDetailService.getCountByUserId(user.getId(),null);
|
|
|
|
|
|
+ cameraCount = cameraDetailService.getCountByCompanyId(user.getCompanyId(),null);
|
|
}
|
|
}
|
|
Long incrementNum = userIncrementService.getCountByUserId(user.getId(),0);
|
|
Long incrementNum = userIncrementService.getCountByUserId(user.getId(),0);
|
|
Long incrementBindNum = userIncrementService.getCountByUserId(user.getId(),1);
|
|
Long incrementBindNum = userIncrementService.getCountByUserId(user.getId(),1);
|