| | |
| | | |
| | | |
| | | /** |
| | | * 上下架接口 |
| | | * @param mostBeautifulVolunteerVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/unmount") |
| | | public R unmount(@RequestBody MostBeautifulVolunteerVO mostBeautifulVolunteerVO) |
| | | { |
| | | if(mostBeautifulVolunteerVO==null) |
| | | { |
| | | return R.fail("参数不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(mostBeautifulVolunteerVO.getId())) |
| | | { |
| | | return R.fail("id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(mostBeautifulVolunteerVO.getCommunityId())) |
| | | { |
| | | return R.fail("社区id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(mostBeautifulVolunteerVO.getUnmountType())) |
| | | { |
| | | return R.fail("上下架状态不能为空"); |
| | | } |
| | | |
| | | return communityService.updateById(mostBeautifulVolunteerVO); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param Id |
| | | * @return |