mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 会员发票抬头功能代码
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package com.jsowell.common.enums;
|
||||
|
||||
public enum TitleTypeEnum {
|
||||
unit("1", "单位"),
|
||||
person("2", "个人"),
|
||||
;
|
||||
private String value;
|
||||
private String label;
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
TitleTypeEnum(String value, String label) {
|
||||
this.value = value;
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public static String getLabel(String value) {
|
||||
for (TitleTypeEnum titleTypeEnum : TitleTypeEnum.values()) {
|
||||
if (titleTypeEnum.getValue().equals(value)) {
|
||||
return titleTypeEnum.getLabel();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user