//字段值处理
String valueClass=value.getClass().getSimpleName();
LOG.debug("fieldAttr: "+fieldAttr+" fieldName: "+fieldName+" valueClass: "+valueClass);
//处理集合类型
if(field.isAnnotationPresent(ModelCollRef.class)){
ModelCollRef ref = field.getAnnotation(ModelCollRef.class);
String fieldRef = ref.value();
Collection collection=(Collection)value;
LOG.debug("处理集合,字段为:"+fieldName+",大小为:"+collection.size());
if(collection.size() > 0){
StringBuilder str=new StringBuilder();
for(Object object : collection){
str.append(ReflectionUtils.getFieldValue(object, fieldRef).toString()).append(",");
}
str=str.deleteCharAt(str.length()-1);
value=str.toString();
}
}
//处理复杂对象类型
if(field.isAnnotationPresent(ModelAttrRef.class)){
LOG.debug("处理对象,字段为:"+fieldName);
ModelAttrRef ref = field.getAnnotation(ModelAttrRef.class);
String fieldRef = ref.value();
//获取fieldRef的值
value = ReflectionUtils.getFieldValue(value, fieldRef);
}
if("Timestamp".equals(valueClass) || "Date".equals(valueClass)){
if(field.isAnnotationPresent(RenderDate.class)){