zss
2025-03-07 12291480d592402398c3ba76e8de6006da5c2612
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
package com.ruoyi.personnel.enumeration;
 
public enum AttachmentType {
    // 设备校准表名
    SBJZ(1,"device_metric_record"),
     // 培训计划 明细表
    PXJH(2,"cnas_person_training_detailed"),
    // 入职授权记录
    RZSQ(3,"cnas_person_post_authorization_record"),
    ;
 
    private Integer type;
    private String value;
 
     AttachmentType(Integer type, String value) {
        this.type = type;
        this.value = value;
    }
 
    public Integer getType() {
        return type;
    }
 
    public void setType(Integer type) {
        this.type = type;
    }
 
    public String getValue() {
        return value;
    }
 
    public void setValue(String value) {
        this.value = value;
    }
 
    public static String getTypeValue(Integer type) {
        AttachmentType.values();
        for(AttachmentType attachmentType : AttachmentType.values()) {
            if(attachmentType.getType().equals(type)) return attachmentType.getValue();
        }
        return "";
    }
 
 
 
}