| | |
| | | userInfo = new String(decrypt); |
| | | LoginUserInfoVO loginUserInfoVO = JSONObject.parseObject(userInfo, LoginUserInfoVO.class); |
| | | //截取社区名 |
| | | if (StringUtils.isEmpty(loginUserInfoVO.getCommunityName())) { |
| | | R<LoginUserInfoVO> userInfoByUserId = userService.getUserInfoByUserId(loginUserInfoVO.getUserId().toString()); |
| | | loginUserInfoVO = userInfoByUserId.getData(); |
| | | } |
| | | Integer type=null; |
| | | if (loginUserInfoVO.getAccount().equals("pannongyenongcunju")){ |
| | | type=2; |
| | | }else if (loginUserInfoVO.getAccount().equals("pandashujuzhongxin")){ |
| | | type=1; |
| | | }else if (loginUserInfoVO.getAccount().equals("fangyipingtai")){ |
| | | type=3; |
| | | } |
| | | // if (StringUtils.isEmpty(loginUserInfoVO.getCommunityName())) { |
| | | // R<LoginUserInfoVO> userInfoByUserId = userService.getUserInfoByUserId(loginUserInfoVO.getUserId().toString()); |
| | | // loginUserInfoVO = userInfoByUserId.getData(); |
| | | // } |
| | | Integer type=3; |
| | | // if (loginUserInfoVO.getAccount().equals("pannongyenongcunju")){ |
| | | // type=2; |
| | | // }else if (loginUserInfoVO.getAccount().equals("pandashujuzhongxin")){ |
| | | // type=1; |
| | | // }else if (loginUserInfoVO.getAccount().equals("fangyipingtai")){ |
| | | // type=3; |
| | | // } |
| | | return userService.communityList(type); |
| | | } |
| | | } |