mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
添加机构名称
This commit is contained in:
@@ -28,6 +28,8 @@ public class UserDto extends OrgCommonDto {
|
||||
@Comment("系统管理员标识")
|
||||
private Boolean sysAdmin;
|
||||
|
||||
private String organizationName;
|
||||
|
||||
private List<RoleDto> roles;
|
||||
private List<RoleDto> otherRoles;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import lombok.Data;
|
||||
|
||||
import org.hibernate.annotations.Cache;
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.Formula;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -51,6 +52,9 @@ public class UserEntity extends OrgCommonEntity {
|
||||
@Comment("系统管理员标识")
|
||||
private Boolean sysAdmin;
|
||||
|
||||
@Formula("(select tu.name from t_organization tu where tu.id = organization_id)")
|
||||
private String organizationName;
|
||||
|
||||
public List<RoleEntity> allRoles() {
|
||||
|
||||
List<RoleEntity> allRoles = new ArrayList<>(this.roles);
|
||||
|
||||
Reference in New Issue
Block a user