|
@@ -54,6 +54,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Iterator;
|
|
@@ -770,13 +771,13 @@ public class CommonFacade {
|
|
|
return retList;
|
|
|
}
|
|
|
for (T item : list) {
|
|
|
- String name = item.getClass().getMethod("getName").invoke(item).toString();
|
|
|
+ String name = ReflectUtil.getProperty(item, "name");
|
|
|
if (StringUtil.isBlank(name)) {
|
|
|
retList.add(item);
|
|
|
continue;
|
|
|
}
|
|
|
if (fieldName.equals("uniqueName")) {
|
|
|
- String uniqueName = item.getClass().getMethod("getUniqueName").invoke(item).toString();
|
|
|
+ String uniqueName = ReflectUtil.getProperty(item, "uniqueName");
|
|
|
if (StringUtil.isNotBlank(uniqueName)) {
|
|
|
retList.add(item);
|
|
|
continue;
|