Procházet zdrojové kódy

有效期限修改

lxp před 1 rokem
rodič
revize
2a896d7dd6

+ 1 - 0
yinet-common/src/main/java/com/yinet/common/utils/DateUtils.java

@@ -74,6 +74,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
         thisDay.set(Calendar.MONTH, Integer.valueOf(nowTime.substring(5,7))-1);	//月份 从0 开始
         thisDay.set(Calendar.DAY_OF_MONTH, Integer.valueOf(nowTime.substring(8,10)));
         thisDay.add(Calendar.YEAR,5);
+        thisDay.add(Calendar.DAY_OF_MONTH, -1);
         Date time5 = thisDay.getTime();
         return time5;
     }