|
@@ -444,8 +444,12 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
HttpRespMsg msg=new HttpRespMsg();
|
|
|
User user= userMapper.selectById(request.getHeader("token"));
|
|
|
List<User> adminList = wxCorpInfoService.getAdminList(user.getCompanyId());
|
|
|
- boolean match = adminList.stream().anyMatch(al -> user.getCorpwxUserid() != null && al.getCorpwxUserid() != null && al.getCorpwxUserid().equals(user.getCorpwxUserid()));
|
|
|
- msg.data=match;
|
|
|
+ /*boolean match = adminList.stream().anyMatch(al -> user.getCorpwxUserid() != null && al.getCorpwxUserid() != null && al.getCorpwxUserid().equals(user.getCorpwxUserid()));*/
|
|
|
+ if(adminList!=null){
|
|
|
+ boolean match = adminList.stream().anyMatch(al -> al.getId().equals(user.getId()));
|
|
|
+ msg.data=match;
|
|
|
+ }
|
|
|
+ msg.data=false;
|
|
|
return msg;
|
|
|
}
|
|
|
|