shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.iplatform.base.util.role;
 
import com.iplatform.model.po.S_role;
 
/**
 * 前端需要在用户管理中,展示用户已拥有的角色,因此角色应添加选中标记。
 * @author 时克英
 * @date 2022-12-15
 */
public class SystemRole extends S_role {
 
    public boolean isFlag() {
        return flag;
    }
//    public boolean getFlag(){return flag;}
 
    public void setFlag(boolean flag) {
        this.flag = flag;
    }
 
    public String[] getMenuIds() {
        return menuIds;
    }
 
    public void setMenuIds(String[] menuIds) {
        this.menuIds = menuIds;
    }
 
    /** 添加角色,关联的菜单组 */
    private String[] menuIds;
 
    /** 用户是否存在此角色标识 默认不存在 */
    private boolean flag = false;
 
    public SystemRole(){}
 
    public SystemRole(S_role s_role){
        this.setRole_id(s_role.getRole_id());
        this.setData_scope(s_role.getData_scope());
        this.setOrg_id(s_role.getOrg_id());
        this.setRole_sort(s_role.getRole_sort());
        this.setRole_key(s_role.getRole_key());
        this.setDel_flag(s_role.getDel_flag());
        this.setDept_check_strictly(s_role.getDept_check_strictly());
        this.setMenu_check_strictly(s_role.getMenu_check_strictly());
        this.setStatus(s_role.getStatus());
        this.setRemark(s_role.getRemark());
        this.setRole_name(s_role.getRole_name());
        // 2023-10-18,字段已有,缺少类型属性
        this.setType(s_role.getType());
    }
}