Explorar o código

删除冗余代码

Gaokun Wang hai 1 mes
pai
achega
b5e35dc80d

+ 0 - 34
eco-common/com-core/src/main/java/org/eco/vip/orm/utils/ReflectUtils.java

@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2025 GaoKunW
- *
- */
-
-package org.eco.vip.orm.utils;
-
-
-import cn.hutool.core.util.ReflectUtil;
-
-/**
- * @description ReflectUtils
- *
- * @author GaoKunW
- * @date 2025/7/4 13:46
- */
-public class ReflectUtils extends ReflectUtil {
-    private static final String GETTER_PREFIX = "get";
-
-    /**
-     * 调用Getter方法.
-     * 支持多级,如:对象名.对象名.方法
-     */
-    public static <E> E invokeGetter(Object obj, String propertyName) {
-        Object object = obj;
-        for (String name : StrUtils.split(propertyName, ".")) {
-            String getterMethodName = GETTER_PREFIX + StrUtils.upperFirst(name);
-            object = invokeMethod(object, getterMethodName, new Class[]{}, new Object[]{});
-        }
-        return (E) object;
-    }
-
-
-}