| | |
| | | @ApiOperation(value = "修改", notes = "传入ownersCommittee") |
| | | public R update(@Valid @RequestBody OwnersCommitteeEntity ownersCommittee) { |
| | | // 负责人修改了需要去更新负责人 |
| | | return R.status(ownersCommitteeService.updateById(ownersCommittee)); |
| | | return R.status(ownersCommitteeService.updateOwnersCommittee(ownersCommittee)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "新增或修改", notes = "传入ownersCommittee") |
| | | public R submit(@Valid @RequestBody OwnersCommitteeEntity ownersCommittee) { |
| | | return R.status(ownersCommitteeService.saveOrUpdate(ownersCommittee)); |
| | | return R.status(ownersCommitteeService.saveOrUpdateOwnersCommittee(ownersCommittee)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "逻辑删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(ownersCommitteeService.removeBatchByIds(Func.toLongList(ids))); |
| | | return R.status(ownersCommitteeService.removeOwnersCommittee(Func.toLongList(ids))); |
| | | } |
| | | |
| | | |