diff --git a/backend/src/main/java/io/dataease/plugins/server/ColumnPermissionsController.java b/backend/src/main/java/io/dataease/plugins/server/ColumnPermissionsController.java index 75b10a988c..2a5d1cfda5 100644 --- a/backend/src/main/java/io/dataease/plugins/server/ColumnPermissionsController.java +++ b/backend/src/main/java/io/dataease/plugins/server/ColumnPermissionsController.java @@ -29,7 +29,7 @@ public class ColumnPermissionsController { @ApiOperation("保存") @PostMapping("save") - public void save(@RequestBody DatasetColumnPermissions datasetColumnPermissions) throws Exception { + public DatasetColumnPermissions save(@RequestBody DatasetColumnPermissions datasetColumnPermissions) throws Exception { ColumnPermissionService columnPermissionService = SpringContextUtil.getBean(ColumnPermissionService.class); DataSetColumnPermissionsDTO request = new DataSetColumnPermissionsDTO(); request.setAuthTargetType(datasetColumnPermissions.getAuthTargetType()); @@ -48,7 +48,7 @@ public class ColumnPermissionsController { throw new Exception(Translator.get("i18n_cp_exist")); } } - columnPermissionService.save(datasetColumnPermissions); + return columnPermissionService.save(datasetColumnPermissions); } @ApiOperation("查询")