|
@@ -232,8 +232,8 @@ public class CommonFacade {
|
|
try {
|
|
try {
|
|
T tNew = (T) tList.get(0).getClass().newInstance(); // 泛型不能直接创建对象
|
|
T tNew = (T) tList.get(0).getClass().newInstance(); // 泛型不能直接创建对象
|
|
BeanUtil.copyProperties(t, tNew);
|
|
BeanUtil.copyProperties(t, tNew);
|
|
- CoreUtil.setFieldValue(tNew, "name", s);
|
|
|
|
- CoreUtil.setFieldValue(tNew, "standName", s);
|
|
|
|
|
|
+ ReflectUtil.setFieldValue(tNew, "name", s);
|
|
|
|
+ ReflectUtil.setFieldValue(tNew, "standName", s);
|
|
participleList.add(tNew);
|
|
participleList.add(tNew);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@@ -748,7 +748,7 @@ public class CommonFacade {
|
|
public <T> void setListProperty(Object obj, String listProperty, String objProperty, Map<String, Map<String, Long>> configMap) {
|
|
public <T> void setListProperty(Object obj, String listProperty, String objProperty, Map<String, Map<String, Long>> configMap) {
|
|
Object tList = CoreUtil.getFieldValue(obj, listProperty);
|
|
Object tList = CoreUtil.getFieldValue(obj, listProperty);
|
|
List<T> newList = convertStandName((List) tList, configMap, objProperty);
|
|
List<T> newList = convertStandName((List) tList, configMap, objProperty);
|
|
- CoreUtil.setFieldValue(obj, listProperty, newList);
|
|
|
|
|
|
+ ReflectUtil.setFieldValue(obj, listProperty, newList);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|