ApproveEnum.java 974 Bytes
Newer Older
1 2 3 4
package cn.timer.api.utils.router.enums;

public enum ApproveEnum {

5 6 7
	DEFAULT(0, "默认", 1), REGULARIZATION(1, "转正", 1), RESIGNATION(2, "离职", 1), TRANSFER_POSITION(3, "调岗", 1),RECRUIT(4, "招聘", 1), 
	WORK_OVERTIME(5, "加班", 2), LEAVE(6, "请假", 2), EVECTION(7, "出差", 2), GO_OUT(8, "外出", 2),REISSUE_A_CARD(9, "补卡", 2),
	WAGE_ADJUSTMENT(10, "调薪", 3);
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

	private Integer type;

	private String desc;

	private Integer businessType;

	ApproveEnum(Integer type, String desc, Integer businessType) {
		this.type = type;
		this.desc = desc;
		this.businessType = businessType;
	}

	public Integer getType() {
		return this.type;
	}

	public static ApproveEnum getEnums(Integer type) {

		for (ApproveEnum approveEnum : values()) {
			if (approveEnum.getType() == type) {
				return approveEnum;
			}
		}
		return null;
	}

	public String getDesc() {
		return this.desc;
	}

	public Integer getBusinessType() {
		return this.businessType;
	}

}