| | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.panzhihua.common.model.vos.community.ComActVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | |
| | | } |
| | | return areaId; |
| | | } |
| | | /** |
| | | * 获取登录对象所在区域编码 |
| | | * |
| | | * @return 小区id |
| | | */ |
| | | public String getAreaCode() { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | ComActVO comActVO = loginUserInfo.getComActVO(); |
| | | if (comActVO==null) { |
| | | return "510423"; |
| | | } |
| | | else { |
| | | return comActVO.getAreaCode(); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取登录token |