package com.gkhy.safePlatform.safeCheck.enums;
|
|
public enum PointCheckStatusEnum {
|
POINT_CHECK_STATUS_UNFINISHED((byte)1,"未完成巡检"),
|
POINT_CHECK_STATUS_FINISHED((byte)2,"完成巡检")
|
;
|
|
Byte code;
|
|
String value;
|
|
PointCheckStatusEnum(Byte code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public Byte getCode() {
|
return code;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
public void setCode(Byte code) {
|
this.code = code;
|
}
|
|
public void setValue(String value) {
|
this.value = value;
|
}
|
|
public static String getValue(Byte code){
|
for (PointCheckStatusEnum pointCheckStatusEnum : PointCheckStatusEnum.values()) {
|
if(pointCheckStatusEnum.getCode()==code){
|
return pointCheckStatusEnum.getValue();
|
}
|
}
|
return "";
|
}
|
}
|