From 691423f4edae7354979d786a9be9945b74d0127d Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期三, 10 十一月 2021 12:01:02 +0800 Subject: [PATCH] 修改接收body数据方法 --- 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