update申请开票

This commit is contained in:
2023-04-15 17:01:27 +08:00
parent 97a9affb6c
commit 208338dd6d
3 changed files with 62 additions and 1 deletions

View File

@@ -0,0 +1,39 @@
package com.jsowell.common.enums;
public enum InvoiceRecordEnum {
NOT_INVOICED("0", "未开票"),
INVOICED("1", "已开票"),
;
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;
}
InvoiceRecordEnum(String value, String label) {
this.value = value;
this.label = label;
}
public static String getLabel(String value) {
for (InvoiceRecordEnum titleTypeEnum : InvoiceRecordEnum.values()) {
if (titleTypeEnum.getValue().equals(value)) {
return titleTypeEnum.getLabel();
}
}
return "";
}
}