|
|
|
|
|
|
|
|
|
|
|
package cn.com.taiji.core.entity.dict.basic; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @desc : 对公账户状态 |
|
|
|
|
|
*/ |
|
|
|
|
|
public enum AccountStatus { |
|
|
|
|
|
NEW("新申请",0){}, |
|
|
|
|
|
NORMAL("正常",1){}, |
|
|
|
|
|
CANCEL("注销",2){}, |
|
|
|
|
|
REJECT("已驳回",3){}, |
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
private String value; |
|
|
|
|
|
|
|
|
|
|
|
private int code; |
|
|
|
|
|
|
|
|
|
|
|
private AccountStatus(String value, int code){ |
|
|
|
|
|
this.value=value; |
|
|
|
|
|
this.code=code; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static AccountStatus fromCode(Integer code){ |
|
|
|
|
|
for(AccountStatus type: AccountStatus.values()){ |
|
|
|
|
|
if(type.getCode()==code){ |
|
|
|
|
|
return type; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getValue() { |
|
|
|
|
|
return value; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getCode() { |
|
|
|
|
|
return code; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |