| | |
| | | |
| | | @ApiOperation(value = "获取条款") |
| | | @GetMapping("/getSysClauseManagements") |
| | | public CommonResult getSysClauseManagements(){ |
| | | return CommonResult.success(sysClauseManagementService.getSysClauseManagements()); |
| | | public CommonResult getSysClauseManagements(@RequestParam("companyId") Long companyId){ |
| | | return CommonResult.success(sysClauseManagementService.getSysClauseManagements(companyId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除条款") |
| | |
| | | return CommonResult.success(sysClauseManagementService.delSysClauseManagement(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "复制条款") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "sourceCompanyId", dataType = "long", required = true, value = "资源公司Id"), |
| | | @ApiImplicitParam(paramType = "query", name = "targetCompanyId", dataType = "long", required = true, value = "目标公司Id"), |
| | | }) |
| | | @GetMapping("/copySysClauseManagements") |
| | | public CommonResult copySysClauseManagements(@RequestParam(value = "sourceCompanyId") Long sourceCompanyId, |
| | | @RequestParam(value = "targetCompanyId") Long targetCompanyId) { |
| | | sysClauseManagementService.copySysClauseManagements(sourceCompanyId, targetCompanyId); |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | } |