qiubh 2 天前
父节点
当前提交
8c9a331795
共有 1 个文件被更改,包括 40 次插入0 次删除
  1. 40
    0
      gly-base-core/src/main/java/cn/com/taiji/core/entity/dict/basic/AccountStatus.java

+ 40
- 0
gly-base-core/src/main/java/cn/com/taiji/core/entity/dict/basic/AccountStatus.java 查看文件

@@ -0,0 +1,40 @@
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;
}

}

正在加载...
取消
保存