| | |
| | | @GetMapping("/queryById") |
| | | public R VolunteerIntegralMerchantQueryById(@RequestParam("id") String id) |
| | | { |
| | | return R.ok(merchantService.VolunteerIntegralMerchantQueryById(id)); |
| | | return merchantService.VolunteerIntegralMerchantQueryById(id); |
| | | } |
| | | // |
| | | // /** |
| | | // * 分页查询 |
| | | // * @param |
| | | // * @return |
| | | // */ |
| | | // @GetMapping("/queryList") |
| | | // public R VolunteerIntegralMerchantQueryList(@RequestParam("pageNum") int pageNum, |
| | | // @RequestParam("pageSize") int pageSize, |
| | | // @RequestParam("name") String name, |
| | | // @RequestParam("state") String state) |
| | | // { |
| | | // return R.ok(merchantService.VolunteerIntegralMerchantQueryList(pageNum,pageSize,name,state)); |
| | | // } |
| | | // |
| | | // /** |
| | | // * 新增 |
| | | // * @param |
| | | // * @return |
| | | // */ |
| | | // @PostMapping("/insertVolunteer") |
| | | // public R VolunteerIntegralMerchantInsertVolunteer(@RequestBody VolunteerIntegralMerchantVO vimVO) |
| | | // { |
| | | // return merchantService.VolunteerIntegralMerchantInsertVolunteer(vimVO); |
| | | // } |
| | | // |
| | | // @PostMapping("/updateById") |
| | | // public R VolunteerIntegralMerchantUpdateById(@RequestBody VolunteerIntegralMerchantVO vimVO) |
| | | // { |
| | | // return merchantService.VolunteerIntegralMerchantUpdateById(vimVO); |
| | | // } |
| | | // |
| | | // @DeleteMapping("/deleteById") |
| | | // public R VolunteerIntegralMerchantDeleteById(@RequestParam String id) |
| | | // { |
| | | // return merchantService.VolunteerIntegralMerchantDeleteById(id); |
| | | // } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/queryList") |
| | | public R VolunteerIntegralMerchantQueryList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam("name") String name, |
| | | @RequestParam("state") String state) |
| | | { |
| | | return R.ok(merchantService.VolunteerIntegralMerchantQueryList(pageNum,pageSize,name,state)); |
| | | } |
| | | |
| | | /** |
| | | * 新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/insertVolunteer") |
| | | public R VolunteerIntegralMerchantInsertVolunteer(@RequestBody VolunteerIntegralMerchantVO vimVO) |
| | | { |
| | | return merchantService.VolunteerIntegralMerchantInsertVolunteer(vimVO); |
| | | } |
| | | |
| | | @PostMapping("/updateById") |
| | | public R VolunteerIntegralMerchantUpdateById(@RequestBody VolunteerIntegralMerchantVO vimVO) |
| | | { |
| | | return merchantService.VolunteerIntegralMerchantUpdateById(vimVO); |
| | | } |
| | | |
| | | @DeleteMapping("/deleteById") |
| | | public R VolunteerIntegralMerchantDeleteById(@RequestParam String id) |
| | | { |
| | | return merchantService.VolunteerIntegralMerchantDeleteById(id); |
| | | } |
| | | |
| | | } |