...
This commit is contained in:
parent
b2f03e4218
commit
c883aaf8d2
|
@ -75,7 +75,7 @@ public class SysAuditTeamController {
|
||||||
@LogOperation("保存")
|
@LogOperation("保存")
|
||||||
// @RequiresPermissions("audit_team:sysauditteam:save")
|
// @RequiresPermissions("audit_team:sysauditteam:save")
|
||||||
public Result save(@RequestBody SysAuditTeamDTO dto) {
|
public Result save(@RequestBody SysAuditTeamDTO dto) {
|
||||||
//效验数据
|
// 效验数据
|
||||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||||
dto.setIndex(CommonUtils.getPinYinHeadChar(dto.getName())); // 索引设置为名称拼音
|
dto.setIndex(CommonUtils.getPinYinHeadChar(dto.getName())); // 索引设置为名称拼音
|
||||||
dto.setMember(dto.getMember().stream().map(index -> {
|
dto.setMember(dto.getMember().stream().map(index -> {
|
||||||
|
@ -87,7 +87,7 @@ public class SysAuditTeamController {
|
||||||
return index;
|
return index;
|
||||||
}).collect(Collectors.toList()));
|
}).collect(Collectors.toList()));
|
||||||
sysAuditTeamService.save(dto);
|
sysAuditTeamService.save(dto);
|
||||||
return new Result();
|
return new Result().ok("保存成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
|
@ -108,7 +108,7 @@ public class SysAuditTeamController {
|
||||||
}).collect(Collectors.toList()));
|
}).collect(Collectors.toList()));
|
||||||
sysAuditTeamService.update(dto);
|
sysAuditTeamService.update(dto);
|
||||||
|
|
||||||
return new Result();
|
return new Result().ok("修改成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
|
@ -121,7 +121,7 @@ public class SysAuditTeamController {
|
||||||
|
|
||||||
sysAuditTeamService.delete(ids);
|
sysAuditTeamService.delete(ids);
|
||||||
|
|
||||||
return new Result();
|
return new Result().ok("删除成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("export")
|
@GetMapping("export")
|
||||||
|
|
Loading…
Reference in New Issue