From 2881cb0204d2d2b35c744a2b88cf79759fd9105f Mon Sep 17 00:00:00 2001 From: csyue <1203338439@qq.com> Date: Tue, 26 Mar 2024 13:53:28 +0800 Subject: [PATCH] =?UTF-8?q?int=E7=B1=BB=E5=9E=8B=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bonus/sgzb/common/core/utils/DateTimeHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgzb-common/sgzb-common-core/src/main/java/com/bonus/sgzb/common/core/utils/DateTimeHelper.java b/sgzb-common/sgzb-common-core/src/main/java/com/bonus/sgzb/common/core/utils/DateTimeHelper.java index 216500a5..808e262a 100644 --- a/sgzb-common/sgzb-common-core/src/main/java/com/bonus/sgzb/common/core/utils/DateTimeHelper.java +++ b/sgzb-common/sgzb-common-core/src/main/java/com/bonus/sgzb/common/core/utils/DateTimeHelper.java @@ -660,7 +660,7 @@ public class DateTimeHelper { Date now = new Date(); System.out.println("当前时间:" + sdf.format(now)); //30分钟 - long time = 30 * 60 * 1000; + int time = 30 * 60 * 1000; //30分钟后的时间 Date afterDate = new Date(now.getTime() + time); System.out.println(sdf.format(afterDate));