update 会员发票抬头功能代码

This commit is contained in:
2023-04-13 15:31:04 +08:00
parent 71b11e3d13
commit f7191823b6
7 changed files with 213 additions and 6 deletions

View File

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