fix: 列权限多次保存

This commit is contained in:
taojinlong 2022-02-04 15:54:26 +08:00
parent 2a62c35673
commit 2ebf1f57c4

View File

@ -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("查询")