权限组返回结果添加创建时间和更新时间
This commit is contained in:
parent
7a80452c82
commit
5348476aa7
@ -6,6 +6,7 @@ import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ -21,6 +22,10 @@ public class SaasPermissionGroupVO {
|
||||
*/
|
||||
private String name;
|
||||
|
||||
private Date createAt;
|
||||
|
||||
private Date updateAt;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
|
||||
@ -152,6 +152,8 @@ public class PermissionGroupImpl implements PermissionGroupService {
|
||||
.updatorName(group.getUpdatorName())
|
||||
.type(group.getType())
|
||||
.isCommon(group.getIsCommon())
|
||||
.createAt(group.getCreateAt())
|
||||
.updateAt(group.getUpdateAt())
|
||||
.build();
|
||||
}
|
||||
).collect(Collectors.toList());
|
||||
@ -262,6 +264,8 @@ public class PermissionGroupImpl implements PermissionGroupService {
|
||||
.roleId(Optional.ofNullable(pgrrMap.get(group.getId())).map(SaasPgroupRoleRelation::getRoleId).orElse(null))
|
||||
.type(group.getType())
|
||||
.isCommon(group.getIsCommon())
|
||||
.createAt(group.getCreateAt())
|
||||
.updateAt(group.getUpdateAt())
|
||||
.build()
|
||||
).collect(Collectors.toList());
|
||||
return PageResp.list(iPage.getCurrent(), iPage.getSize(), iPage.getTotal(), pageList);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user