记得上下班打卡 | git大法好,push需谨慎

Commit 24a42b7b authored by jiangxiulong's avatar jiangxiulong

msg 提前5分钟

parent a95653fe
...@@ -23,6 +23,7 @@ import org.springframework.data.redis.core.RedisTemplate; ...@@ -23,6 +23,7 @@ import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import java.time.LocalDateTime;
import java.util.Set; import java.util.Set;
/** /**
...@@ -62,7 +63,9 @@ public class SweetWechatTemplateServiceImpl { ...@@ -62,7 +63,9 @@ public class SweetWechatTemplateServiceImpl {
if (null == sweetWechatUser || null == performanceVo) { if (null == sweetWechatUser || null == performanceVo) {
continue; continue;
} }
String nowTimeStr = DateUtil.getNowTime(); LocalDateTime nowTime = LocalDateTime.now();
LocalDateTime newNowTime = nowTime.minusMinutes(5);
String nowTimeStr = DateUtil.Formatter.yyyyMMddHHmmss.format(newNowTime);
String sellTime = performanceVo.getSellTime(); String sellTime = performanceVo.getSellTime();
String stopSellTime = performanceVo.getStopSellTime(); String stopSellTime = performanceVo.getStopSellTime();
if (1 == DateUtil.compareStrDay(nowTimeStr, stopSellTime)) { // 超过售卖期 不推 删redis if (1 == DateUtil.compareStrDay(nowTimeStr, stopSellTime)) { // 超过售卖期 不推 删redis
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment