严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
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
package com.northglass.constants;
 
import java.util.ArrayList;
import java.util.List;
 
public class GlassColor {
 
    public static final String WHITE = "白色";//White
    public static final String NO_WHITE = "非白";//No_White
    public static final String BLUE = "蓝色";//Blue
    public static final String RED = "红色";//Red
    
    public static final String WHITE_CODE = "00";
    
    public static final String SPECIAL_FLAG="1";//1表示特殊玻璃
    public static final String GENERAL_FLAG="0";//0表示普通玻璃
    
    public static final int START_INDEX = 0;//color字段截取初始位
    public static final int END_INDEX = 3;//color字段截取终止位
    
    public static final String WHITE_GLASS="5C";
    
    public static final String PACKAGE="打包";//Package
    public static final String NOT_PACKAGE="不打包";//Not Package
    
    public static final List<String> COLOR_LIST = new ArrayList<String>();
    
    static {
        COLOR_LIST.add(WHITE);
        COLOR_LIST.add(NO_WHITE);
    }
    
    
    public static String getCodeByColor(String color) {
        if (color.equalsIgnoreCase(WHITE)) {
            return WHITE_CODE;
        }
        
        return "";
    }
    
    public static String getColorByCode(String code) {
        if (code.equalsIgnoreCase(WHITE_CODE)) {
            return WHITE;
        }
        
        return "";
    }
    
    public List<String> getPackage(){
        List<String> strPackage=new ArrayList<String>();
        strPackage.add(PACKAGE);
        strPackage.add(NOT_PACKAGE);
        return strPackage;
    }
}