This commit is contained in:
wangliwen 2022-12-12 16:21:23 +08:00
parent b2f03e4218
commit c883aaf8d2
1 changed files with 4 additions and 4 deletions

View File

@ -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")