From 8c1c003c60d2f27b3c55e248451caeec7f2b5631 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 28 一月 2021 19:06:28 +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