CZT
2023-09-18 366bd9b4bd8f4323959fbf345c31ce38ea719553
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package com.fzzy.push.sh2023.dto;
 
/**
 * 上海市平台2023版 -- 标记位
 */
public enum ShAreaBjw {
 
    BJW_310112("310112", "闵行区", "minhang"),
    BJW_310113("310113", "宝山区", "baoshan"),
    BJW_310114("310114", "嘉定区", "jiading"),
    BJW_310115("310115", "浦东新区", "pudong"),
    BJW_310116("310116", "金山区", "jinshan"),
    BJW_310117("310117", "松江区", "songjiang"),
    BJW_310118("310118", "青浦区", "qingpu"),
    BJW_310120("310120", "奉贤区", "fengxian"),
    BJW_310151("310151", "崇明区", "chongming");
 
    private String code;
    private String name;
    private String bjw;
 
    ShAreaBjw(String code, String name, String bjw) {
        this.code = code;
        this.name = name;
        this.bjw = bjw;
    }
 
    public String getCode() {
        return code;
    }
 
    public String getName() {
        return name;
    }
 
    public String getBjw() {
        return bjw;
    }
 
    public static String getName(String code) {
        if (null == code) return null;
 
        if (ShAreaBjw.BJW_310112.getCode().equals(code)) return ShAreaBjw.BJW_310112.getName();
        if (ShAreaBjw.BJW_310113.getCode().equals(code)) return ShAreaBjw.BJW_310113.getName();
        if (ShAreaBjw.BJW_310114.getCode().equals(code)) return ShAreaBjw.BJW_310114.getName();
        if (ShAreaBjw.BJW_310115.getCode().equals(code)) return ShAreaBjw.BJW_310115.getName();
        if (ShAreaBjw.BJW_310116.getCode().equals(code)) return ShAreaBjw.BJW_310116.getName();
        if (ShAreaBjw.BJW_310117.getCode().equals(code)) return ShAreaBjw.BJW_310117.getName();
        if (ShAreaBjw.BJW_310118.getCode().equals(code)) return ShAreaBjw.BJW_310118.getName();
        if (ShAreaBjw.BJW_310120.getCode().equals(code)) return ShAreaBjw.BJW_310120.getName();
        if (ShAreaBjw.BJW_310151.getCode().equals(code)) return ShAreaBjw.BJW_310151.getName();
 
        return code;
    }
 
    public static String getBjw(String code) {
        if (null == code) return null;
 
        if (ShAreaBjw.BJW_310112.getCode().equals(code)) return ShAreaBjw.BJW_310112.getBjw();
        if (ShAreaBjw.BJW_310113.getCode().equals(code)) return ShAreaBjw.BJW_310113.getBjw();
        if (ShAreaBjw.BJW_310114.getCode().equals(code)) return ShAreaBjw.BJW_310114.getBjw();
        if (ShAreaBjw.BJW_310115.getCode().equals(code)) return ShAreaBjw.BJW_310115.getBjw();
        if (ShAreaBjw.BJW_310116.getCode().equals(code)) return ShAreaBjw.BJW_310116.getBjw();
        if (ShAreaBjw.BJW_310117.getCode().equals(code)) return ShAreaBjw.BJW_310117.getBjw();
        if (ShAreaBjw.BJW_310118.getCode().equals(code)) return ShAreaBjw.BJW_310118.getBjw();
        if (ShAreaBjw.BJW_310120.getCode().equals(code)) return ShAreaBjw.BJW_310120.getBjw();
        if (ShAreaBjw.BJW_310151.getCode().equals(code)) return ShAreaBjw.BJW_310151.getBjw();
 
        return code;
    }
 
}