yudao-module-hrm-api/src/main/java/cn/iocoder/yudao/module/hrm/enums/HrmAttendanceClockTypeEnum.java
@@ -23,6 +23,21 @@ public static final Integer[] ARRAYS = Arrays.stream(values()).map(HrmAttendanceClockTypeEnum::getType).toArray(Integer[]::new); /** * 根据类型获得名称(用于界面展示,如 my-status 返回) */ public static String getNameByType(Integer type) { if (type == null) { return null; } for (HrmAttendanceClockTypeEnum value : values()) { if (value.getType().equals(type)) { return value.getName(); } } return null; } @Override public Integer[] array() { return ARRAYS;