mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 订单详情接口
This commit is contained in:
@@ -48,4 +48,14 @@ public enum AdapayPayChannelEnum {
|
||||
this.value = value;
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
// 添加一个根据 value 查找 label 的方法
|
||||
public static String getLabelByValue(String value) {
|
||||
for (AdapayPayChannelEnum channel : AdapayPayChannelEnum.values()) {
|
||||
if (channel.getValue().equals(value)) {
|
||||
return channel.getLabel();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public enum OrderPayRecordEnum {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public static String getPayModeDescription(String value) {
|
||||
public static String getPayModeDesc(String value) {
|
||||
for (OrderPayRecordEnum orderPayModeEnum : OrderPayRecordEnum.values()) {
|
||||
if (orderPayModeEnum.getValue().equals(value)) {
|
||||
return orderPayModeEnum.getLabel();
|
||||
|
||||
Reference in New Issue
Block a user