中扬CRM客户关系管理系统
LSH
2023-08-22 688ab515b1eadad9fc4cd3be5578833ef418a59b
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
package com.zy.crm.manager.entity;
 
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.io.Serializable;
 
@Data
@TableName("man_process_permissions")
public class ProcessPermissions implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * ID
     */
    @ApiModelProperty(value= "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     * 员工姓名
     */
    @ApiModelProperty(value= "员工姓名")
    @TableField("user_name")
    private String userName;
 
    /**
     * 员工ID
     */
    @ApiModelProperty(value= "员工ID")
    @TableField("user_id")
    private Long userId;
 
    /**
     * 报价单权限
     */
    @ApiModelProperty(value= "报价单权限")
    @TableField("pri_quote")
    private String priQuote;
 
    /**
     * 报销权限
     */
    @ApiModelProperty(value= "报销权限")
    private String reimburse;
 
    /**
     * 备用字段1
     */
    @ApiModelProperty(value= "备用字段1")
    private String standby1;
 
    /**
     * 备用字段2
     */
    @ApiModelProperty(value= "备用字段2")
    private String standby2;
 
    /**
     * 备用字段3
     */
    @ApiModelProperty(value= "备用字段3")
    private String standby3;
 
    /**
     * 备用字段4
     */
    @ApiModelProperty(value= "备用字段4")
    private String standby4;
 
    /**
     * 备用字段5
     */
    @ApiModelProperty(value= "备用字段5")
    private String standby5;
 
    /**
     * 备用字段6
     */
    @ApiModelProperty(value= "备用字段6")
    private String standby6;
 
    /**
     * 权限节点
     */
    @ApiModelProperty(value= "权限节点")
    private String process;
 
    /**
     * 备注
     */
    @ApiModelProperty(value= "备注")
    private String memo;
 
    /**
     * 权限类型
     */
    @ApiModelProperty(value= "权限类型")
    @TableField("process_memo")
    private Integer processMemo;
 
    public ProcessPermissions() {}
 
    public ProcessPermissions(String userName, Long userId, String priQuote, String reimburse, String standby1, String standby2, String standby3, String standby4, String standby5, String standby6, String process, String memo, Integer processMemo) {
        this.userName = userName;
        this.userId = userId;
        this.priQuote = priQuote;
        this.reimburse = reimburse;
        this.standby1 = standby1;
        this.standby2 = standby2;
        this.standby3 = standby3;
        this.standby4 = standby4;
        this.standby5 = standby5;
        this.standby6 = standby6;
        this.process = process;
        this.memo = memo;
        this.processMemo = processMemo;
    }
 
    public String getProcessMemo$(){
        if (null == this.processMemo){ return null; }
        switch (this.processMemo){
            case 1:
                return "核价流程";
            case 2:
                return "报价流程";
            case 3:
                return "报销流程";
            case 4:
                return "出差流程";
            default:
                return String.valueOf(this.processMemo);
        }
    }
 
//    ProcessPermissions processPermissions = new ProcessPermissions(
//            null,    // 员工姓名[非空]
//            null,    // 员工ID[非空]
//            null,    // 报价单权限
//            null,    // 报销权限
//            null,    // 备用字段1
//            null,    // 备用字段2
//            null,    // 备用字段3
//            null,    // 备用字段4
//            null,    // 备用字段5
//            null,    // 备用字段6
//            null,    // 权限节点[非空]
//            null,    // 备注
//            null    // 权限类型[非空]
//    );
 
 
}