mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
故障描述
This commit is contained in:
@@ -256,7 +256,7 @@ public class CacheConstants {
|
||||
public static final String HUA_WEI_ORDER_INFO_BY_ORDER_CODE = "HUA_WEI_ORDER_INFO_BY_ORDER_CODE:";
|
||||
|
||||
/**
|
||||
* 桩硬件故障
|
||||
* 桩硬件故障 根据枪口号查询故障原因
|
||||
*/
|
||||
public static final String PILE_HARDWARE_FAULT = "pile_hardware_fault:";
|
||||
|
||||
|
||||
@@ -23,21 +23,6 @@ public enum YKCPileFaultReasonEnum {
|
||||
DOOR_OPEN_FAULT(13, "门打开"),
|
||||
;
|
||||
|
||||
/**
|
||||
* 根据code获取故障描述
|
||||
*
|
||||
* @param code 故障编码
|
||||
* @return 故障描述
|
||||
*/
|
||||
public static String getValueByCode(int code) {
|
||||
for (YKCPileFaultReasonEnum item : YKCPileFaultReasonEnum.values()) {
|
||||
if (item.getCode() == code) {
|
||||
return item.getValue();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private int code;
|
||||
private String value;
|
||||
|
||||
@@ -61,4 +46,19 @@ public enum YKCPileFaultReasonEnum {
|
||||
this.code = code;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取故障描述
|
||||
*
|
||||
* @param code 故障编码
|
||||
* @return 故障描述
|
||||
*/
|
||||
public static String getValueByCode(int code) {
|
||||
for (YKCPileFaultReasonEnum item : YKCPileFaultReasonEnum.values()) {
|
||||
if (item.getCode() == code) {
|
||||
return item.getValue();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user