更改目录结构
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package cn.ysk.cashier.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @author lyf
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum PayTypeEnum {
|
||||
CASH("cash","现金"),BANK("bank","银行卡"),SCANCODE("scanCode","扫码支付"),
|
||||
DEPOSIT("deposit","储值"),ARREARS("arrears","挂单");
|
||||
|
||||
private String type;
|
||||
|
||||
private String name;
|
||||
|
||||
|
||||
|
||||
public static String getNameByType(String name) {
|
||||
PayTypeEnum[] operateTypes = values();
|
||||
for (PayTypeEnum ot : operateTypes) {
|
||||
if (ot.name.equals(name)) {
|
||||
return ot.getType();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user