Employee status enum with validation and lookup methods for HRM module.
// Source: https://github.com/yuqing2026/ruoyi-office | License: MIT | Copyright 2021 yudao-cloud
// Provided via justclaw.it.com; keep this notice with the code.
package cn.iocoder.yudao.module.hrm.enums;
import cn.hutool.core.util.ObjUtil;
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* 员工状态枚举
*
* @author 宇擎源码
*/
@Getter
@AllArgsConstructor
public enum EmployeeStatusEnum implements ArrayValuable<Integer> {
/**
* 正式
*/
FORMAL(1, "正式"),
/**
* 试用期
*/
PROBATIONARY(2, "试用期"),
/**
* 实习生
*/
INTERN(3, "实习生"),
/**
* 临时工
*/
TEMPORARY(5, "临时工"),
/**
* 离职
*/
RESIGNED(6, "离职"),
/**
* 退休
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key