分销修改

This commit is contained in:
张松
2025-10-28 14:43:55 +08:00
parent ff32ec71c1
commit 0ef7e2643e
5 changed files with 99 additions and 80 deletions

View File

@@ -80,9 +80,6 @@ public class MkDistributionWithdrawFlow implements Serializable {
private String status;
@Column(ignore = true)
private String nickName;
@Column(ignore = true)
private String phone;
}

View File

@@ -0,0 +1,18 @@
package com.czg.market.vo;
import com.czg.market.entity.MkDistributionWithdrawFlow;
import com.mybatisflex.annotation.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author Administrator
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class MkDistributionWithdrawFlowVO extends MkDistributionWithdrawFlow {
@Column(ignore = true)
private String nickName;
@Column(ignore = true)
private String phone;
}

View File

@@ -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();
// 只处理 gettergetXxx() / isXxx()
if ((methodName.startsWith("get") && methodName.length() > 3)
|| (methodName.startsWith("is") && methodName.length() > 2)) {