Commit c913d44b by s_guodong

支持List<String>

parent c79ddb3b
......@@ -398,11 +398,14 @@ public class MdaDriver {
((ParameterizedType) to.getGenericType()).getActualTypeArguments()[0]
) {
if (!voToMod) {
to.set(toObj, from.get(fromObj)); //拷贝数据
//拷贝数据
to.set(toObj, from.get(fromObj));
} else {
//添加数据、添加分页数据
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) {
HashMap<String, Object> inrs = new HashMap<>();
for (Object o : moduleList) {
......@@ -421,11 +424,15 @@ public class MdaDriver {
moduleList.add(o);
}
}
} else {
IDatafield iDatafield = (IDatafield) baseObject;
iDatafield.setValue(dataList);
}
}
return;
}
if (!to.getType().equals(from.getType())) //类型不相等
{
//类型不相等
if (!to.getType().equals(from.getType())) {
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