|
@@ -322,6 +322,8 @@ public class JySceneUserAuthServiceImpl extends ServiceImpl<IJySceneUserAuthMapp
|
|
|
IJyUserShareService jyUserShareService;
|
|
|
@Autowired
|
|
|
ManageService manageService;
|
|
|
+ @Autowired
|
|
|
+ IJyUserPlatformService jyUserPlatformService;
|
|
|
|
|
|
@Override
|
|
|
public Object checkNumAuth(String num,String token,String clientIP,String userName,String password) {
|
|
@@ -371,11 +373,22 @@ public class JySceneUserAuthServiceImpl extends ServiceImpl<IJySceneUserAuthMapp
|
|
|
}
|
|
|
|
|
|
SysUser byId = sysUserService.getById(sysUserId);
|
|
|
- if(byId.getRoleId() != 47L ){
|
|
|
+ if(byId.getRoleId() == 1L ){
|
|
|
sceneAuthVo.setViewAuth(true);
|
|
|
sceneAuthVo.setEditAuth(true);
|
|
|
return sceneAuthVo;
|
|
|
}
|
|
|
+ if(byId.getRoleId() == 45L || byId.getRoleId() == 47L){
|
|
|
+ Integer loginPlatformId = jyUserPlatformService.getLoginPlatformId();
|
|
|
+ if(loginPlatformId != null){
|
|
|
+ List<Long> byUserIdPlatform = jyUserService.getByUserIdPlatform(loginPlatformId);
|
|
|
+ if(byUserIdPlatform.contains(sceneUserId)){
|
|
|
+ sceneAuthVo.setViewAuth(true);
|
|
|
+ sceneAuthVo.setEditAuth(true);
|
|
|
+ return sceneAuthVo;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
JyUser jyUser = jyUserService.getBySysId(byId.getId());
|
|
|
//if(jySceneAuth != null && jySceneAuth.getAuthType() == 0){
|
|
|
if(jySceneAuth != null ){
|