| | |
| | | |
| | | @GetMapping("/sanshuo/comEvent/communityList") |
| | | R westList(); |
| | | |
| | | @GetMapping("/sanshuo/expert/backstageList") |
| | | R expertBackStageList(@RequestParam(value = "level",required = false)Integer level); |
| | | } |
| | |
| | | public R westCommunityList(){ |
| | | return communityService.westList(); |
| | | } |
| | | @GetMapping("/expert/backstageList") |
| | | public R expertBackStageList(@RequestParam(value = "level",required = false)Integer level){ |
| | | return communityService.expertBackStageList(level); |
| | | } |
| | | } |
| | |
| | | @GetMapping("/expert/backList") |
| | | public R expertBackList(@RequestParam(value = "keyWord",required = false)@ApiParam("搜索关键字") String keyWord, |
| | | @RequestParam(value = "page",required = false)Integer page, |
| | | @RequestParam(value = "size",required = false)Integer size){ |
| | | return communityService.backExpertList(keyWord, page, size); |
| | | @RequestParam(value = "size",required = false)Integer size, |
| | | @RequestParam(value = "level",required = false)Integer level){ |
| | | return communityService.backExpertList(keyWord, page, size,level); |
| | | } |
| | | |
| | | @PostMapping("/expert") |
| | |
| | | return communityService.eventIndexData(type); |
| | | } |
| | | |
| | | @GetMapping("/expert/backstageList") |
| | | public R expertBackStageList(@RequestParam(value = "level",required = false)Integer level){ |
| | | return communityService.expertBackStageList(level); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 后台获取专家列表 |
| | | * */ |
| | | @GetMapping("/backstageList") |
| | | public R backstageList(@RequestParam(value = "level",required = false)Integer level){ |
| | | return comSanShuoExpertService.backstageList(level,getLoginUserInfo()); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | * Excel添加专家 |
| | | * */ |
| | | void insertExpert(ComSanshuoExpert comSanshuoExpert); |
| | | |
| | | /** |
| | | * 新增专家后台列表 |
| | | * */ |
| | | R backstageList(Integer level,LoginUserInfoVO loginUserInfoVO); |
| | | } |
| | |
| | | // } |
| | | } |
| | | |
| | | @Override |
| | | public R backstageList(Integer level,LoginUserInfoVO loginUserInfoVO) { |
| | | if (nonNull(level)){ |
| | | if (level.equals(1)){ |
| | | //三说会堂权限,查看所有 |
| | | return R.ok(comSanshuoExpertDao.selectList(null)); |
| | | }else if (level.equals(2)){ |
| | | //行业分中心 |
| | | ComSanshuoIndustryCenter center = comSanshuoIndustryCenterDao.selectOne(new QueryWrapper<ComSanshuoIndustryCenter>().lambda().eq(ComSanshuoIndustryCenter::getAccount, loginUserInfoVO.getAccount())); |
| | | return R.ok(comSanshuoExpertDao.selectList(new QueryWrapper<ComSanshuoExpert>().lambda().eq(ComSanshuoExpert::getIndustryCenterId,center.getId()))); |
| | | }else if (level.equals(3)){ |
| | | //街道 |
| | | return R.ok(comSanshuoExpertDao.selectList(new QueryWrapper<ComSanshuoExpert>().lambda().eq(ComSanshuoExpert::getStreetId,loginUserInfoVO.getStreetId()))); |
| | | }else if(level.equals(4)){ |
| | | return R.ok(comSanshuoExpertDao.selectList(new QueryWrapper<ComSanshuoExpert>().lambda().eq(ComSanshuoExpert::getCommunityId,loginUserInfoVO.getCommunityId()))); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |