...
|
...
|
@@ -74,10 +74,7 @@ public class AnnotationClassFactory { |
|
|
//将sourceObject时间戳从Integer转成long的时候,直接转成毫秒
|
|
|
private Object transfer(Object value, Class<?> targetType , String fieldName){
|
|
|
if(value instanceof Integer && targetType.isAssignableFrom(Long.class)){
|
|
|
if("createTime".equals(fieldName.trim()) || "updateTime".equals(fieldName.trim())){
|
|
|
return Long.valueOf(value.toString() + "000");
|
|
|
}
|
|
|
return Long.valueOf(value.toString());
|
|
|
return Long.valueOf(value.toString()+"000");
|
|
|
}
|
|
|
return value;
|
|
|
}
|
...
|
...
|
|