| | |
| | | if (loginUserInfo.getAccount().equals("admin")){ |
| | | //三说会堂查看所有专家 |
| | | id=null; |
| | | range=null; |
| | | range=1; |
| | | } |
| | | IPage<ComSanshuoExpertVO> comSanshuoExpertVOIPage = comSanshuoExpertDao.expertPage(new Page(page, size), keyWord, range, id, level); |
| | | for (ComSanshuoExpertVO record : comSanshuoExpertVOIPage.getRecords()) { |
| | |
| | | vo.setId(comSanshuoIndustryCenterDao.selectOne(new QueryWrapper<ComSanshuoIndustryCenter>().lambda().eq(ComSanshuoIndustryCenter::getAccount, loginUserInfo.getAccount())).getId()); |
| | | list.add(vo); |
| | | return R.ok(list); |
| | | }else if (nonNull(loginUserInfo.getUserType())){ |
| | | if (loginUserInfo.getUserType().equals(1)){ |
| | | //街道账号 |
| | | ComStreetDO comStreetDO = comStreetDAO.selectById(loginUserInfo.getStreetId()); |
| | | List<ExpertRangeVO> list=new ArrayList<>(); |
| | | ExpertRangeVO vo=new ExpertRangeVO(); |
| | | vo.setLevel(3); |
| | | vo.setName(comStreetDO.getName()+"调解站"); |
| | | vo.setId(loginUserInfo.getStreetId()); |
| | | list.add(vo); |
| | | return R.ok(list); |
| | | } |
| | | if (loginUserInfo.getUserType().equals(2)){ |
| | | //街道账号 |
| | | ComActDO comActDO = comActDAO.selectById(loginUserInfo.getCommunityId()); |
| | | List<ExpertRangeVO> list=new ArrayList<>(); |
| | | ExpertRangeVO vo=new ExpertRangeVO(); |
| | | vo.setLevel(4); |
| | | vo.setName(comActDO.getName()+"调解站"); |
| | | vo.setId(loginUserInfo.getCommunityId()); |
| | | list.add(vo); |
| | | return R.ok(list); |
| | | } |
| | | }else if (loginUserInfo.getType().equals(3)) { |
| | | //社区账号 |
| | | ComActDO comStreetDO = comActDAO.selectById(loginUserInfo.getCommunityId()); |
| | | List<ExpertRangeVO> list = new ArrayList<>(); |
| | | ExpertRangeVO vo = new ExpertRangeVO(); |
| | | vo.setLevel(4); |
| | | vo.setName(comStreetDO.getName() + "调解站"); |
| | | vo.setId(loginUserInfo.getCommunityId()); |
| | | list.add(vo); |
| | | return R.ok(list); |
| | | } else if (loginUserInfo.getType().equals(7)){ |
| | | //街道账号 |
| | | ComStreetDO comActDO = comStreetDAO.selectById(loginUserInfo.getStreetId()); |
| | | List<ExpertRangeVO> list=new ArrayList<>(); |
| | | ExpertRangeVO vo=new ExpertRangeVO(); |
| | | vo.setLevel(4); |
| | | vo.setName(comActDO.getName()+"调解站"); |
| | | vo.setId(loginUserInfo.getStreetId()); |
| | | list.add(vo); |
| | | return R.ok(list); |
| | | } |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 小程序获取专家列表 |