浏览代码

增加自定义日期,及时相应的json转换、jdbc转换全局处理。

yucheng 3 年之前
父节点
当前提交
13d8e50935

+ 2 - 2
fm-common/src/main/java/com/persagy/fm/common/lang/PsDate.java

@@ -570,8 +570,8 @@ public class PsDate implements Serializable, Comparable<PsDate>, Cloneable {
      * @see Comparable#compareTo(Object)
      */
     @Override
-    public int compareTo(PsDate cdate) {
-        return calendar.compareTo(cdate.calendar);
+    public int compareTo(PsDate psDate) {
+        return calendar.compareTo(psDate.calendar);
     }
 
     /**

+ 2 - 2
fm-common/src/main/java/com/persagy/fm/common/lang/PsDateTime.java

@@ -290,8 +290,8 @@ public class PsDateTime extends PsDate implements Comparable<PsDate> {
      * @see Comparable#compareTo(Object)
      */
     @Override
-    public int compareTo(PsDate cdate) {
-        return calendar.compareTo(cdate.calendar);
+    public int compareTo(PsDate psDate) {
+        return calendar.compareTo(psDate.calendar);
     }
 
     /**

+ 5 - 5
fm-common/src/main/java/com/persagy/fm/common/lang/PsTime.java

@@ -149,7 +149,7 @@ public class PsTime extends PsDate {
      * 比较日期先后,对象日期在参数日期之后为true
      * @param when 比较的日期的对象
      * @return 布尔值
-     * @deprecated 继承自CDate,CTime中不再使用
+     * @deprecated
      */
     @Override
     public boolean after(PsDate when) {
@@ -160,7 +160,7 @@ public class PsTime extends PsDate {
      * 比较日期先后,对象日期在参数日期之前为true
      * @param when 比较的日期的对象
      * @return 布尔值
-     * @deprecated 继承自CDate,CTime中不再使用
+     * @deprecated
      */
     @Override
     public boolean before(PsDate when) {
@@ -171,7 +171,7 @@ public class PsTime extends PsDate {
      * 返回指定天数之后的自定义日期对象
      * @param days 指定的天数
      * @return 自定义日期对象
-     * @deprecated 继承自CDate,CTime中不再使用
+     * @deprecated
      */
     @Override
     public PsDate getDateAfter(int days) {
@@ -182,7 +182,7 @@ public class PsTime extends PsDate {
      * 返回指定天数之前的自定义日期对象
      * @param days 指定的天数
      * @return 自定义日期对象
-     * @deprecated 继承自CDate,CTime中不再使用
+     * @deprecated
      */
     @Override
     public PsDate getDateBefore(int days) {
@@ -193,7 +193,7 @@ public class PsTime extends PsDate {
      * 取得当前日期对象在指定的日期对象之后多少天
      * @param when 要比较的自定义对象
      * @return 在比较的自定义对象之后多少天
-     * @deprecated 继承自CDate,CTime中不再使用
+     * @deprecated
      */
     @Override
     public int getDaysAfter(PsDate when) {