权限组返回结果添加创建时间和更新时间

This commit is contained in:
陈维伟 2023-09-16 11:01:58 +08:00
parent 7a80452c82
commit 5348476aa7
2 changed files with 9 additions and 0 deletions

View File

@ -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;
/**
* 创建者
*/

View File

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