Browse Source

时间排序更新

rengb 5 years atrás
parent
commit
50141b246a

+ 9 - 1
trans/src/main/java/com/lantone/qc/trans/taizhou/TaizhouDocTrans.java

@@ -309,7 +309,15 @@ public class TaizhouDocTrans extends DocTrans {
         }
         long time1 = date1 == null ? 0 : date1.getTime();
         long time2 = date2 == null ? 0 : date2.getTime();
-        return (int) (time1 - time2);
+
+        if (time1 == time2) {
+            return 0;
+        }
+        if (time1 > time2) {
+            return -1;
+        } else {
+            return 1;
+        }
     }
 
 }