浏览代码

有效期限修改

lxp 1 年之前
父节点
当前提交
2a896d7dd6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      yinet-common/src/main/java/com/yinet/common/utils/DateUtils.java

+ 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;
     }