mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 交易记录逻辑
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
package com.jsowell.common.enums.ykc;
|
||||
|
||||
/**
|
||||
* 卡状态枚举
|
||||
*
|
||||
* @author JS-ZZA
|
||||
* @date 2023/4/6 9:17
|
||||
*/
|
||||
public enum CardStatusEnum {
|
||||
|
||||
WAIT_ACTIVATION("0", "待激活"),
|
||||
NORMAL("1", "正常使用"),
|
||||
START_LOCK("2", "启动锁定"),
|
||||
STOP_USE("9", "停用"),
|
||||
;
|
||||
|
||||
|
||||
private String code;
|
||||
private String value;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
CardStatusEnum(String code, String value) {
|
||||
this.code = code;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public static String getCardStatus(String code) {
|
||||
for (CardStatusEnum cardStatusEnum : CardStatusEnum.values()) {
|
||||
if (cardStatusEnum.getCode().equals(code)) {
|
||||
return cardStatusEnum.getValue();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ public enum StartModeEnum {
|
||||
WEB("0", "后管启动"),
|
||||
APP("1","用户app启动"),
|
||||
CARD("2", "卡启动"),
|
||||
|
||||
OFFLINE_CARD("3", "离线卡启动"),
|
||||
;
|
||||
|
||||
private String value;
|
||||
|
||||
Reference in New Issue
Block a user