Commit 82c188ac authored by cq990612's avatar cq990612

优化代码结构

parent c632f362
package cn.wisenergy.model.enums;
public enum ProjectTypeEnum {
PROJECT(1, "项目"),
BUSINESS_OPPORTUNITY(2,"商机");
PROJECT(1, "项目", 1),
BUSINESS_OPPORTUNITY(2, "商机", 1),
LEAVE(3, "请假", 2),
COMPENSATORY_LEAVE(4, "调休", 2),
EXTERNAL_BUSINESS(5, "外部商务与技术交流", 3),
INTERNAL_TRAINING(6, "内部培训、技术准备、管理", 3),
OTHER_NON_PROJECTS(7, "其他非项目/商机工作", 3),
private Integer code;
private String msg;
ProjectTypeEnum(Integer code, String msg){
this.code = code;
this.msg = msg;
;
private Integer type;
private String typeName;
// 1:项目经理 2:自动审批 3:其他管理员
private Integer reviewer;
ProjectTypeEnum(Integer type, String typeName, Integer reviewer) {
this.reviewer = reviewer;
this.type = type;
this.typeName = typeName;
}
public Integer getType() {
return type;
}
public Integer getCode(){
return code;
public String getTypeName() {
return typeName;
}
public String getMsg(){
return msg;
public Integer getReviewer() {
return reviewer;
}
}
package cn.wisenergy.model.enums;
/**
* @Authotr:陈奇
* @QQ1799796883
*/
public enum StatusEnum {
COMPLETED(1,"已填报"),
APPROVED(2, "已审批"),
REJECTED(3, "被驳回"),
RE_SUBMIT(4,"重新填报"),
AUTOMATIC_AUDIT(5,"自动审批")
;
private Integer status;
private String msg;
StatusEnum(Integer status, String msg){
this.status = status;
this.msg = msg;
}
public Integer getCode(){
return status;
}
public String getMsg(){
return msg;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment