xiaoyi
2026-10-28 8eb62ee0efe77e264cd48b3f1fd835e9b8430318
yudao-module-hrm-api/src/main/java/cn/iocoder/yudao/module/hrm/enums/HrmAttendanceClockTypeEnum.java
@@ -28,4 +28,19 @@
        return ARRAYS;
    }
    /**
     * 根据类型获取名称,未知类型返回 null
     */
    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;
    }
}