Showing
1 changed file
with
1 additions
and
4 deletions
@@ -74,10 +74,7 @@ public class AnnotationClassFactory { | @@ -74,10 +74,7 @@ public class AnnotationClassFactory { | ||
74 | //将sourceObject时间戳从Integer转成long的时候,直接转成毫秒 | 74 | //将sourceObject时间戳从Integer转成long的时候,直接转成毫秒 |
75 | private Object transfer(Object value, Class<?> targetType , String fieldName){ | 75 | private Object transfer(Object value, Class<?> targetType , String fieldName){ |
76 | if(value instanceof Integer && targetType.isAssignableFrom(Long.class)){ | 76 | if(value instanceof Integer && targetType.isAssignableFrom(Long.class)){ |
77 | - if("createTime".equals(fieldName.trim()) || "updateTime".equals(fieldName.trim())){ | ||
78 | - return Long.valueOf(value.toString() + "000"); | ||
79 | - } | ||
80 | - return Long.valueOf(value.toString()); | 77 | + return Long.valueOf(value.toString()+"000"); |
81 | } | 78 | } |
82 | return value; | 79 | return value; |
83 | } | 80 | } |
-
Please register or login to post a comment