45 lines
783 B
Java
45 lines
783 B
Java
|
|
package com.engine.salary.enums;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @Author weaver_cl
|
||
|
|
* @Description: TODO
|
||
|
|
* @Date 2022/3/17
|
||
|
|
* @Version V1.0
|
||
|
|
* The trial
|
||
|
|
* A formal
|
||
|
|
* temporary
|
||
|
|
* Try to postpone the
|
||
|
|
* fire
|
||
|
|
* departure
|
||
|
|
* retired
|
||
|
|
* invalid
|
||
|
|
**/
|
||
|
|
public enum UserStatus {
|
||
|
|
|
||
|
|
TRIAL(0,"试用"),
|
||
|
|
FORMAL(1,"正式"),
|
||
|
|
TEMPORARY(2,"临时"),
|
||
|
|
DELAY(3,"试用延期"),
|
||
|
|
FIRE(4,"解雇"),
|
||
|
|
DEPARTURE(5,"离职"),
|
||
|
|
RETIRED(6,"退休"),
|
||
|
|
INVALID(7,"无效");
|
||
|
|
|
||
|
|
private Integer value;
|
||
|
|
private String description;
|
||
|
|
|
||
|
|
|
||
|
|
UserStatus(Integer value, String description) {
|
||
|
|
this.value = value;
|
||
|
|
this.description = description;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getDescription() {
|
||
|
|
return this.description;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Integer getValue() {
|
||
|
|
return value;
|
||
|
|
}
|
||
|
|
}
|