| | |
| | | public Long getCommunityId() { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | Long communityId = loginUserInfo.getCommunityId(); |
| | | if (null == communityId || 0 == communityId) { |
| | | throw new ServiceException("用户未绑定社区"); |
| | | } |
| | | return communityId; |
| | | } |
| | | |
| | |
| | | public String getCommunityName() { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | Long communityId = loginUserInfo.getCommunityId(); |
| | | if (null == communityId || 0 == communityId) { |
| | | throw new ServiceException("用户未绑定社区"); |
| | | } |
| | | String communityName = loginUserInfo.getCommunityName(); |
| | | return communityName; |
| | | } |
| | |
| | | return "510423"; |
| | | } |
| | | } else { |
| | | LoginUserInfoVO loginUserInfoVO=this.getLoginUserInfo(); |
| | | ComActVO comActVO=loginUserInfoVO.getComActVO(); |
| | | if(isNull(comActVO) || isBlank(comActVO.getAreaCode())){ |
| | | LoginUserInfoVO loginUserInfoVO = this.getLoginUserInfo(); |
| | | if(isBlank(loginUserInfoVO.getAreaCode())){ |
| | | return "510423"; |
| | | } |
| | | return comActVO.getAreaCode(); |
| | | return loginUserInfoVO.getAreaCode(); |
| | | } |
| | | } |
| | | |