lxp
2025-03-12 11af23e0c7976eed1211ba2ca0beae3a12e19310
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
package com.ruoyi.common.enums;
 
 
public enum AttachmentType {
    /*
    * 报告编制
     */
    INS_REPORT(1, "ins_report"),
    USER(2, "user"),
 
 
    ;
 
 
    private Integer type;
 
    private String value;
 
 
    private 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 getAttachmentValue(Integer type) {
        for (AttachmentType attachmentType : AttachmentType.values()) {
            if (attachmentType.getType().equals(type)) {
                return attachmentType.getValue();
            }
        }
        return null;
    }
 
 
 
}