From c883aaf8d2e59aa125814c97f18ca6adbb97ab8f Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 12 Dec 2022 16:21:23 +0800 Subject: [PATCH] ... --- .../audit_team/controller/SysAuditTeamController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/audit_team/controller/SysAuditTeamController.java b/renren-admin/src/main/java/io/renren/modules/audit_team/controller/SysAuditTeamController.java index 9299a462..7d78e58d 100644 --- a/renren-admin/src/main/java/io/renren/modules/audit_team/controller/SysAuditTeamController.java +++ b/renren-admin/src/main/java/io/renren/modules/audit_team/controller/SysAuditTeamController.java @@ -75,7 +75,7 @@ public class SysAuditTeamController { @LogOperation("保存") // @RequiresPermissions("audit_team:sysauditteam:save") public Result save(@RequestBody SysAuditTeamDTO dto) { - //效验数据 + // 效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); dto.setIndex(CommonUtils.getPinYinHeadChar(dto.getName())); // 索引设置为名称拼音 dto.setMember(dto.getMember().stream().map(index -> { @@ -87,7 +87,7 @@ public class SysAuditTeamController { return index; }).collect(Collectors.toList())); sysAuditTeamService.save(dto); - return new Result(); + return new Result().ok("保存成功"); } @PutMapping @@ -108,7 +108,7 @@ public class SysAuditTeamController { }).collect(Collectors.toList())); sysAuditTeamService.update(dto); - return new Result(); + return new Result().ok("修改成功"); } @DeleteMapping @@ -121,7 +121,7 @@ public class SysAuditTeamController { sysAuditTeamService.delete(ids); - return new Result(); + return new Result().ok("删除成功"); } @GetMapping("export")