From c3e8c86d062fbac17758274156a4f18655bdd3a2 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 23 一月 2021 15:41:50 +0800 Subject: [PATCH] 外网部署参数修改 --- service-daylucky/src/main/java/com/ks/daylucky/util/activity/ActivityUtil.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/service-daylucky/src/main/java/com/ks/daylucky/util/activity/ActivityUtil.java b/service-daylucky/src/main/java/com/ks/daylucky/util/activity/ActivityUtil.java index 9957068..3c37572 100644 --- a/service-daylucky/src/main/java/com/ks/daylucky/util/activity/ActivityUtil.java +++ b/service-daylucky/src/main/java/com/ks/daylucky/util/activity/ActivityUtil.java @@ -4,9 +4,11 @@ import com.ks.daylucky.pojo.DTO.AssistJoinInfoDTO; import com.ks.lucky.pojo.DO.LuckyActivity; import org.yeshi.utils.JsonUtil; +import org.yeshi.utils.TimeUtil; import org.yeshi.utils.encrypt.AESUtil; import java.util.ArrayList; +import java.util.Date; import java.util.List; public class ActivityUtil { @@ -16,10 +18,11 @@ * 杩斿洖娲诲姩鏈熷彿 * * @param id + * @param createTime 鍒涘缓鏃堕棿 * @return */ - public static String getActivityDateNumber(Long id) { - return String.format("NO.%s", id + ""); + public static String getActivityDateNumber(Long id, Date createTime) { + return String.format("NO.%s", TimeUtil.getGernalTime(createTime.getTime(), "yyyyMMdd") + id); } /** -- Gitblit v1.8.0