Commit c913d44b by s_guodong

支持List<String>

parent c79ddb3b
...@@ -398,11 +398,14 @@ public class MdaDriver { ...@@ -398,11 +398,14 @@ public class MdaDriver {
((ParameterizedType) to.getGenericType()).getActualTypeArguments()[0] ((ParameterizedType) to.getGenericType()).getActualTypeArguments()[0]
) { ) {
if (!voToMod) { if (!voToMod) {
to.set(toObj, from.get(fromObj)); //拷贝数据 //拷贝数据
to.set(toObj, from.get(fromObj));
} else { } else {
//添加数据、添加分页数据 //添加数据、添加分页数据
List dataList = (List) from.get(fromObj); List dataList = (List) from.get(fromObj);
IModuleList moduleList = (IModuleList) getBaseObject((IModule) toObj, to.getName()); IBaseObject baseObject = getBaseObject((IModule) toObj, to.getName());
if (baseObject instanceof IModuleList) {
IModuleList moduleList = (IModuleList) baseObject;
if (dataList != null) { if (dataList != null) {
HashMap<String, Object> inrs = new HashMap<>(); HashMap<String, Object> inrs = new HashMap<>();
for (Object o : moduleList) { for (Object o : moduleList) {
...@@ -421,11 +424,15 @@ public class MdaDriver { ...@@ -421,11 +424,15 @@ public class MdaDriver {
moduleList.add(o); moduleList.add(o);
} }
} }
} else {
IDatafield iDatafield = (IDatafield) baseObject;
iDatafield.setValue(dataList);
}
} }
return; return;
} }
if (!to.getType().equals(from.getType())) //类型不相等 //类型不相等
{ if (!to.getType().equals(from.getType())) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment