提交修改
This commit is contained in:
parent
195cc38459
commit
02140012bb
@ -60,6 +60,9 @@ public class ApiConstants {
|
||||
*/
|
||||
public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";
|
||||
public static Integer warning_flag = 500;
|
||||
public static final String Merge = "Merge";
|
||||
public static final String List = "List";
|
||||
public static final String set = "set";
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -2,6 +2,7 @@ package com.heyu.api.data.utils;
|
||||
|
||||
import com.heyu.api.common.LBiFunction0;
|
||||
import com.heyu.api.common.test.AriseUser;
|
||||
import com.heyu.api.data.constants.ApiConstants;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.ClassUtils;
|
||||
@ -278,12 +279,14 @@ public class SanUtils {
|
||||
list.add(r);
|
||||
}
|
||||
String getMethodName = method.getName();
|
||||
String setMethodName = "set" + getMethodName.substring(3);
|
||||
String setMethodNameList = "setMerge" + getMethodName.substring(3) + "List";
|
||||
String setMethodName = ApiConstants.set + getMethodName.substring(3);
|
||||
|
||||
String setMethodNameList = ApiConstants.set + ApiConstants.Merge + getMethodName.substring(3) + ApiConstants.List;
|
||||
|
||||
Method setMehtod = null;
|
||||
|
||||
List<Method> methods = new ArrayList<>();
|
||||
getAllDeclaredMethods(methods,v.getClass());
|
||||
getAllDeclaredMethods(methods, v.getClass());
|
||||
for (Method m : methods) {
|
||||
if (m.getName().equals(setMethodNameList)) {
|
||||
setMehtod = m;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user