mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
update订单状态和枪口状态
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.jsowell.common.enums.ykc;
|
||||
|
||||
import java.util.Objects;
|
||||
/**
|
||||
* order_basic_info表 order_status字段
|
||||
* 订单状态(0-未启动;1-充电中;2-待结算;3-待补缴;4-异常;5-可疑;6-订单完成;7-超时关闭)
|
||||
@@ -48,4 +49,21 @@ public enum OrderStatusEnum {
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
// 中电联订单状态转化
|
||||
public static Integer convertToNewStatus(String orderStatus) {
|
||||
if (Objects.equals(orderStatus , IN_THE_CHARGING.value)) {
|
||||
return 2; // 充电中
|
||||
} else if (Objects.equals(orderStatus , ORDER_COMPLETE.value)) {
|
||||
return 4; // 充电完成
|
||||
} else if (Objects.equals(orderStatus , NOT_START.value)) {
|
||||
return 1; // 启动中
|
||||
} else if (Objects.equals(orderStatus , STAY_SETTLEMENT.value) || Objects.equals(orderStatus , STAY_RETROACTIVE_AMOUNT.value)) {
|
||||
return 3; // 停止中
|
||||
} else {
|
||||
return 5; // 未知
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user