if(prop.contains(".id")){
//处理两个对象之间的引用,如:model.org.id=1
String[] attr=prop.replace(".",",").split(",");
if(attr.length==2){
Object obj=ReflectionUtils.getFieldValue(model, attr[0]);
properties.add(new Property(prop, ReflectionUtils.getFieldValue(obj, attr[1])));
}
}
}
else{
properties.add(new Property(prop, ReflectionUtils.getFieldValue(model, prop)));
}
}
}
assemblyModelForPartUpdate(properties);