heheng
5 days ago 3134991a6c9315421ff3d4b3b4f1bd76bb5dbdc9
multi-admin/src/main/java/com/gkhy/exam/admin/controller/system/SysClauseManagementController.java
@@ -29,17 +29,30 @@
    @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 = "删除条款")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "body", name = "id", dataType = "long", required = true, value = "id"),
            @ApiImplicitParam(paramType = "query", name = "id", dataType = "long", required = true, value = "id"),
    })
    @PostMapping("/delSysClauseManagement")
    @GetMapping("/delSysClauseManagement")
    public CommonResult delSysClauseManagement(@RequestParam(value = "id",required = true) Long id) {
        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();
    }
}