This commit is contained in:
wangliwen 2022-04-25 14:19:02 +08:00
parent 60685c8878
commit 8d44b59fe5
1 changed files with 2 additions and 2 deletions

View File

@ -126,10 +126,10 @@ public class ResourceController {
}) })
//@RequiresPermissions("resource:resource:save") //@RequiresPermissions("resource:resource:save")
public Result save(@RequestBody ResourceDTO dto, String source) { public Result save(@RequestBody ResourceDTO dto, String source) {
//效验数据 // 效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
if ("f".equals(source)) { if ("f".equals(source)) {
dto.setDelFlag(2); // 来自前端页面 dto.setDelFlag(2); // 来自前端页面 走审批流程
} }
resourceService.insertWithAttrs(dto); resourceService.insertWithAttrs(dto);