| | |
| | | public R getUserListByCommunityId(Long communityId) { |
| | | return R.ok(this.userDao.getUserListByCommunityId(communityId)); |
| | | } |
| | | |
| | | /** |
| | | * 根据openid维护社区团队里是否注册 |
| | | * @param openid 用户微信唯一标识 |
| | | */ |
| | | @Override |
| | | public void judgeCommunityTeam(String openid){ |
| | | //查询用户信息 |
| | | SysUserDO userDO = this.userDao.selectOne(new QueryWrapper<SysUserDO>().lambda().eq(SysUserDO::getOpenid,openid)); |
| | | if(userDO != null && StringUtils.isNotEmpty(userDO.getPhone())){ |
| | | if(this.userDao.getCommunityTeamCount(userDO.getPhone()) > 0){ |
| | | this.userDao.judgeCommunityTeam(userDO.getPhone()); |
| | | } |
| | | } |
| | | } |
| | | } |