| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/queryById") |
| | | public R queryById(@RequestParam("id") String Id) |
| | | public R queryById2(@RequestParam("id") String id) |
| | | { |
| | | if(StringUtils.isEmpty(Id)) |
| | | if(StringUtils.isEmpty(id)) |
| | | { |
| | | return R.fail("id不能为空"); |
| | | } |
| | | return R.ok(mostBeautifulVolunteerService.queryById(Id)); |
| | | return R.ok(mostBeautifulVolunteerService.queryById(id)); |
| | | } |
| | | |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/upMostBeautiful") |
| | | public R updateById(MostBeautifulVolunteerVO mostBeautifulVolunteerVO) |
| | | public R updateById(@RequestBody MostBeautifulVolunteerVO mostBeautifulVolunteerVO) |
| | | { |
| | | if(mostBeautifulVolunteerVO==null) |
| | | { |