分销修改
This commit is contained in:
@@ -80,9 +80,6 @@ public class MkDistributionWithdrawFlow implements Serializable {
|
||||
private String status;
|
||||
|
||||
|
||||
@Column(ignore = true)
|
||||
private String nickName;
|
||||
@Column(ignore = true)
|
||||
private String phone;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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