P15GEN2\59518
2025-10-10 9f6890646993d16260d4201d613c092132856127
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
package biz.policy.price;
 
public enum PolicyLevel {
 
    Standard(0), Policy(1), Agreement(2), Record(3);
 
    private String source;
    private int level;
 
    public static PolicyLevel parse(String source) {
        if ("协议分解".equalsIgnoreCase(source)) {
            return Agreement;
        }
        else if ("手动录入备案".equalsIgnoreCase(source)) { 
            return Record;
        }
 
        return Standard;
    }
    
    public int getLevel() {
        return (this.level * 10);
    }
 
    private PolicyLevel(int level) {
        this.level = level;
    }
 
    public String getSource() {
        return source;
    }
    
}