分销修改
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.czg.utils;
|
||||
|
||||
import cn.hutool.core.text.NamingCase;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.core.constant.SqlConnector;
|
||||
import com.mybatisflex.core.query.*;
|
||||
import com.mybatisflex.core.table.TableInfo;
|
||||
@@ -12,6 +13,7 @@ import com.mybatisflex.core.util.StringUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.invoke.SerializedLambda;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
@@ -30,6 +32,7 @@ public class MyQueryWrapper extends QueryWrapper implements Serializable {
|
||||
TableInfo tableInfo = TableInfoFactory.ofEntityClass(clazz);
|
||||
for (Method declaredMethod : clazz.getDeclaredMethods()) {
|
||||
String methodName = declaredMethod.getName();
|
||||
|
||||
// 只处理 getter:getXxx() / isXxx()
|
||||
if ((methodName.startsWith("get") && methodName.length() > 3)
|
||||
|| (methodName.startsWith("is") && methodName.length() > 2)) {
|
||||
|
||||
Reference in New Issue
Block a user