| | |
| | | return R.status(topicsService.updateById(topics)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 议题表 修改 |
| | | */ |
| | | @PostMapping("/updateBath") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "批量更新", notes = "传入topics") |
| | | public R updateBath(@Valid @RequestBody List<TopicsEntity> topics) { |
| | | return R.status(topicsService.updateBatchById(topics)); |
| | | } |
| | | |
| | | /** |
| | | * 议题表 新增或修改 |
| | | */ |
| | |
| | | @PostMapping("/remove") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "逻辑删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(topicsService.removeByIds(Func.toLongList(ids))); |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam Integer ids) { |
| | | return R.status(topicsService.removeById(ids)); |
| | | } |
| | | |
| | | |