mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
package com.jsowell.common.enums.parkplatform;
|
||||
|
||||
/**
|
||||
* 车位锁状态
|
||||
*/
|
||||
public enum ParkingLockAlarmEnum {
|
||||
ALARM_CLEAR("00", "正常无报警"),
|
||||
ARM_MALFUNCTION("55", "摇臂升降异常(未到位)"),
|
||||
ARM_DAMAGED("FF", "待机状态摇臂破坏"),
|
||||
;
|
||||
|
||||
private String value;
|
||||
private String label;
|
||||
|
||||
ParkingLockAlarmEnum(String value, String label) {
|
||||
this.value = value;
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public static String getLabelByValue(String value) {
|
||||
for (ParkingLockAlarmEnum entity : ParkingLockAlarmEnum.values()) {
|
||||
if (entity.getValue().equals(value)) {
|
||||
return entity.getLabel();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.jsowell.common.enums.parkplatform;
|
||||
|
||||
/**
|
||||
* 车位锁状态
|
||||
*/
|
||||
public enum ParkingLockStatusEnum {
|
||||
NOT_DEPLOYED("00", "未到位状态"),
|
||||
LOCKED_RAISED("55", "升锁到位状态"),
|
||||
LOCKED_LOWERED("FF", "降锁到位状态"),
|
||||
;
|
||||
|
||||
private String value;
|
||||
private String label;
|
||||
|
||||
ParkingLockStatusEnum(String value, String label) {
|
||||
this.value = value;
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public static String getLabelByValue(String value) {
|
||||
for (ParkingLockStatusEnum entity : ParkingLockStatusEnum.values()) {
|
||||
if (entity.getValue().equals(value)) {
|
||||
return entity.getLabel();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ package com.jsowell.common.enums.parkplatform;
|
||||
* @author Lemon
|
||||
* @Date 2023/9/22 15:26
|
||||
*/
|
||||
public enum ParkingEnum {
|
||||
public enum ParkingPlatformEnum {
|
||||
LU_TONG_YUN_TING_PLATFORM("1", "路通云停停车平台"),
|
||||
RUAN_JIE_PLATFORM("2", "软杰停车平台"),
|
||||
;
|
||||
@@ -14,7 +14,7 @@ public enum ParkingEnum {
|
||||
private String code;
|
||||
private String label;
|
||||
|
||||
ParkingEnum(String code, String label) {
|
||||
ParkingPlatformEnum(String code, String label) {
|
||||
this.code = code;
|
||||
this.label = label;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.jsowell.common.enums.parkplatform;
|
||||
|
||||
/**
|
||||
* 车位状态
|
||||
*/
|
||||
public enum ParkingStatusEnum {
|
||||
NO_VEHICLES("00", "无车辆"),
|
||||
PARKED_VEHICLES("FF", "停放车辆"),
|
||||
;
|
||||
|
||||
private String value;
|
||||
private String label;
|
||||
|
||||
ParkingStatusEnum(String value, String label) {
|
||||
this.value = value;
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public void setLabel(String label) {
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public static String getLabelByValue(String value) {
|
||||
for (ParkingStatusEnum entity : ParkingStatusEnum.values()) {
|
||||
if (entity.getValue().equals(value)) {
|
||||
return entity.getLabel();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user