| | |
| | | } |
| | | @GetMapping("/search") |
| | | @ApiOperation(value = "积分配置查询", tags = {"后台"}) |
| | | public R<List<PointSetting>> search(@RequestParam Integer id) { |
| | | public R<List<PointSetting>> search() { |
| | | List<PointSetting> list = pointSettingService.list(); |
| | | return R.ok(list); |
| | | } |
| | | @PostMapping("/save") |
| | | @ApiOperation(value = "积分配置", tags = {"后台"}) |
| | | public R<PointSetting> save(@RequestBody PointSettingDto pointSettingDto) { |
| | | pointSettingService.remove(Wrappers.lambdaQuery()); |
| | | pointSettingService.saveBatch(pointSettingDto.getPointSettings()); |
| | | pointSettingService.saveOrUpdateBatch(pointSettingDto.getPointSettings()); |
| | | return R.ok(); |
| | | } |
| | | |