You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.5 KiB
59 lines
1.5 KiB
package com.epmet;
|
|
|
|
/**
|
|
* @Description 红色待办-待办状态枚举
|
|
* @Author wangxianzhang
|
|
* @Time 2023/5/9 9:59 AM
|
|
*/
|
|
public enum LingShanAgentServiceProcessStatusEnum {
|
|
// 办理状态。0待受理,1已受理,2已驳回,3已办结,-1已撤回
|
|
|
|
WAIT_ACCEPT(0, "待受理"),
|
|
ACCEPTED(1, "已受理"),
|
|
REJECTED(2, "已驳回"),
|
|
CLOSED(3, "已办结"),
|
|
WITHDRAW(-1, "已撤回");
|
|
|
|
private int statusCode;
|
|
|
|
private String statusName;
|
|
|
|
LingShanAgentServiceProcessStatusEnum(int status, String name) {
|
|
this.statusCode = status;
|
|
this.statusName = name;
|
|
}
|
|
|
|
public static LingShanAgentServiceProcessStatusEnum getByStatus(int statusCode) {
|
|
for (LingShanAgentServiceProcessStatusEnum e : LingShanAgentServiceProcessStatusEnum.values()) {
|
|
if (e.statusCode == statusCode) {
|
|
return e;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static LingShanAgentServiceProcessStatusEnum getByName(String statusName) {
|
|
for (LingShanAgentServiceProcessStatusEnum e : LingShanAgentServiceProcessStatusEnum.values()) {
|
|
if (e.statusName.equals(statusName)) {
|
|
return e;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public int getStatusCode() {
|
|
return statusCode;
|
|
}
|
|
|
|
public void setStatusCode(int statusCode) {
|
|
this.statusCode = statusCode;
|
|
}
|
|
|
|
public String getStatusName() {
|
|
return statusName;
|
|
}
|
|
|
|
public void setStatusName(String statusName) {
|
|
this.statusName = statusName;
|
|
}
|
|
}
|
|
|