huminmin
8 天以前 23735b6e060d48f333d9ad91796c2cb6a42a1d9e
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
package cn.iocoder.yudao.module.srm.enums;
 
import lombok.Getter;
 
/**
 * 招投标模式枚举
 */
@Getter
public enum BiddingModeEnum {
 
    FULL("FULL", "完整版"),
    SIMPLE("SIMPLE", "简易版");
 
    BiddingModeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }
 
    private final String code;
    private final String name;
 
    public static boolean isSimple(String mode) {
        return SIMPLE.getCode().equals(mode);
    }
 
    public static boolean isFull(String mode) {
        return mode == null || FULL.getCode().equals(mode);
    }
 
}