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;
|
}
|
|
}
|