kimi
2020-05-23 82fbbf24939e150ee3cef90dc0dd843c9897a7e6
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
package com.highdatas.mdm.entity;
 
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.highdatas.mdm.pojo.Operate;
import org.apache.commons.lang3.StringUtils;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * <p>
 * 
 * </p>
 *
 * @author kimi
 * @since 2019-12-18
 */
@TableName("sys_field")
public class SysField extends Model<SysField> {
 
    private static final long serialVersionUID = 1L;
 
    private String id;
 
    private String code;
 
    /**
     * 表名
     */
    @TableField("table_name")
    private String tableName;
 
    /**
     * 字段名
     */
    private String field;
 
    /**
     * 前台展示名称
     */
    private String alias;
 
    /**
     * 格式化规则
     */
    private String format;
 
    /**
     * 宽度
     */
    private Integer width;
 
    /**
     * 是否可见
     */
    private Boolean visible;
 
    private Boolean editble;
    private transient Boolean refused;
    private transient String menuName;
    private transient String menuId;
 
    private transient Object number;
    private transient AntianaphylaxisType desensitizationType;
    private transient Object initialPosition;
    private transient BlurryType initialDirection;
 
 
 
 
    public AntianaphylaxisType getDesensitizationType() {
        return desensitizationType;
    }
 
    public void setDesensitizationType(AntianaphylaxisType desensitizationType) {
        this.desensitizationType = desensitizationType;
    }
 
    public Object getNumber() {
        return number;
    }
 
    public void setNumber(Object number) {
        this.number = number;
    }
 
    public Object getInitialPosition() {
        return initialPosition;
    }
 
    public void setInitialPosition(Object initialPosition) {
        this.initialPosition = initialPosition;
    }
 
    public BlurryType getInitialDirection() {
        return initialDirection;
    }
 
    public void setInitialDirection(BlurryType initialDirection) {
        this.initialDirection = initialDirection;
    }
 
    public String getMenuName() {
        return menuName;
    }
 
    public SysField setMenuName(String menuName) {
        this.menuName = menuName;
        return this;
    }
 
    public String getMenuId() {
        return menuId;
    }
 
    public SysField setMenuId(String menuId) {
        this.menuId = menuId;
        return this;
    }
 
    @TableField(strategy = FieldStrategy.IGNORED)
    private Operate operate;
 
    /**
     * 对齐方式
     */
    private String align;
 
    @TableField("maintain_field_id")
    private String maintainFieldId;
 
    @TableField("order_no")
    private Integer orderNo;
 
    @TableField("field_type")
    private String fieldType;
 
    private String desp;
 
    @TableField("create_time")
    private Date createTime;
 
    @TableField("update_time")
    private Date updateTime;
 
    public Boolean getRefused() {
        return refused;
    }
 
    public SysField setRefused(Boolean refused) {
        this.refused = refused;
        return this;
 
    }
 
    public Operate getOperate() {
        return operate;
    }
 
    public SysField setOperate(Operate operate) {
        this.operate = operate;
        return this;
    }
 
    public String getMaintainFieldId() {
        return maintainFieldId;
    }
 
    public SysField setMaintainFieldId(String maintainFieldId) {
        this.maintainFieldId = maintainFieldId;
        return this;
    }
 
    public String getId() {
        return id;
    }
 
    public SysField setId(String id) {
        this.id = id;
        return this;
    }
    public String getCode() {
        return code;
    }
 
    public SysField setCode(String code) {
        this.code = code;
        return this;
    }
    public String getTableName() {
        return tableName;
    }
 
    public SysField setTableName(String tableName) {
        this.tableName = tableName;
        return this;
    }
    public String getField() {
        return field;
    }
 
    public SysField setField(String field) {
        this.field = field;
        return this;
    }
    public String getAlias() {
        return alias;
    }
 
    public SysField setAlias(String alias) {
        this.alias = alias;
        return this;
    }
    public String getFormat() {
        return format;
    }
 
    public SysField setFormat(String format) {
        this.format = format;
        return this;
    }
    public Integer getWidth() {
        return width;
    }
 
    public SysField setWidth(Integer width) {
        this.width = width;
        return this;
    }
    public Boolean getVisible() {
        return visible;
    }
 
    public SysField setVisible(Boolean visible) {
        this.visible = visible;
        return this;
    }
    public Boolean getEditble() {
        return editble;
    }
 
    public SysField setEditble(Boolean editble) {
        this.editble = editble;
        return this;
    }
    public String getAlign() {
        return align;
    }
 
    public SysField setAlign(String align) {
        this.align = align;
        return this;
    }
    public Integer getOrderNo() {
        return orderNo;
    }
 
    public SysField setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
        return this;
    }
    public String getFieldType() {
        return fieldType;
    }
 
    public SysField setFieldType(String fieldType) {
        this.fieldType = fieldType;
        return this;
    }
    public String getDesp() {
        return desp;
    }
 
    public SysField setDesp(String desp) {
        this.desp = desp;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }
 
    public SysField setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }
 
    public SysField setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
 
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
 
    @Override
    public int hashCode() {
        int hash = 0;
        if (!StringUtils.isEmpty(tableName)) {
            hash += tableName.hashCode();
        }
        if (!StringUtils.isEmpty(alias)) {
            hash += alias.hashCode();
        }
        if (visible != null) {
            hash += visible.hashCode();
        }
        if (orderNo != null) {
            hash += orderNo.hashCode();
        }
        if (!StringUtils.isEmpty(code)) {
            hash += code.hashCode();
        }if (!StringUtils.isEmpty(align)) {
            hash += align.hashCode();
        }if (!StringUtils.isEmpty(format)) {
            hash += format.hashCode();
        }
        return hash;
    }
 
    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
//        if (obj instanceof SysField) {
//            SysField compare = (SysField) obj;
//            return compare.getTableName().equalsIgnoreCase(tableName)
//                    &&
//                    compare.getAlias().equalsIgnoreCase(alias)
//                    &&
//                    compare.getVisible().equals(visible)
//                    &&
//                    compare.getOrderNo().equals(orderNo)
//                    &&
//                    compare.getCode().equalsIgnoreCase(code)
//                    &&
//                    compare.getAlign().equalsIgnoreCase(align)
//                    &&
//                    compare.getFormat().equalsIgnoreCase(format);
//        } else {
//
//        }
 
    }
 
    @Override
    public String toString() {
        return "SysField{" +
        "id=" + id +
        ", code=" + code +
        ", tableName=" + tableName +
        ", field=" + field +
        ", alias=" + alias +
        ", format=" + format +
        ", width=" + width +
        ", visible=" + visible +
        ", editble=" + editble +
        ", align=" + align +
        ", orderNo=" + orderNo +
        ", fieldType=" + fieldType +
        ", desp=" + desp +
        ", operate=" + operate +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}