From 211330fa781ab404800565808c3c15b5c40df7c9 Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期三, 27 十月 2021 11:35:43 +0800
Subject: [PATCH] 敏感数据处理工具

---
 src/main/java/com/hx/util/DateUtil.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/hx/util/DateUtil.java b/src/main/java/com/hx/util/DateUtil.java
index a8d58a6..60e7d19 100644
--- a/src/main/java/com/hx/util/DateUtil.java
+++ b/src/main/java/com/hx/util/DateUtil.java
@@ -305,6 +305,19 @@
         return c.getTime();
     }
 
+    /**鏃堕棿涓婃湀鏁板彔鍔�
+     * @Author: ChenJiaHe
+     * @param dateTime 鏃堕棿
+     * @param dayNum 澶╂暟
+     * @return
+     */
+    public static Date addMonth(Date dateTime,int dayNum){
+        Calendar c = Calendar.getInstance();
+        c.setTime(dateTime);
+        c.add(Calendar.MONTH, dayNum);
+        return c.getTime();
+    }
+
     /**鏃堕棿涓婂勾鏁板彔鍔�
      * @Author: ChenJiaHe
      * @param dateTime 鏃堕棿

--
Gitblit v1.8.0