package com.gkhy.safePlatform.specialWork.enums;
|
|
import java.util.HashMap;
|
import java.util.Map;
|
|
public enum WorkApprovalUnitResultEnum {
|
WAIT_TO_START((byte)-1,"未开始"),
|
RESULT_IN_APPROVAL((byte)0,"审批中"),
|
RESULT_SUCCESS((byte)1,"通过"),
|
RESULT_AUTO_REJECT((byte)2,"自动驳回"),
|
RESULT_ABORD((byte)3,"终止"),
|
RESULT_INTERRUPTED((byte)4,"审批中断"),
|
|
RESULT_OVER_TIME((byte)5,"审批超时"),
|
|
RESULT_EXPIRATION_DATE((byte) 6, "分析人审批时效过期"),
|
RESULT_APPROVED_UNSUCCESS((byte) 7, "未审批通过"),
|
;
|
|
private Byte result;
|
private String desc;
|
|
WorkApprovalUnitResultEnum(Byte result, String desc) {
|
this.result = result;
|
this.desc = desc;
|
}
|
|
static Map<Byte, WorkApprovalUnitResultEnum> map;
|
static {
|
map = new HashMap<>();
|
for (WorkApprovalUnitResultEnum e : WorkApprovalUnitResultEnum.values()) {
|
map.put(e.result, e);
|
}
|
}
|
public static WorkApprovalUnitResultEnum parse(Byte type) {
|
return map.get(type);
|
}
|
|
public Byte getResult() {
|
return result;
|
}
|
|
public void setResult(Byte result) {
|
this.result = result;
|
}
|
|
public String getDesc() {
|
return desc;
|
}
|
|
public void setDesc(String desc) {
|
this.desc = desc;
|
}
|
}
|