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

Commit 3a7da2d1 authored by jiangxiulong's avatar jiangxiulong

sweet log

parent bfeb9d1a
...@@ -63,6 +63,7 @@ public class SweetWechatTemplateServiceImpl { ...@@ -63,6 +63,7 @@ public class SweetWechatTemplateServiceImpl {
SweetWechatUser sweetWechatUser = redisDataUtils.getSweetWechatUser(remindInfo.getUnionId()); SweetWechatUser sweetWechatUser = redisDataUtils.getSweetWechatUser(remindInfo.getUnionId());
KylinPerformanceVo performanceVo = (KylinPerformanceVo) redisUtil.get(KylinRedisConst.PERFORMANCES.concat(remindInfo.getPerformancesId())); KylinPerformanceVo performanceVo = (KylinPerformanceVo) redisUtil.get(KylinRedisConst.PERFORMANCES.concat(remindInfo.getPerformancesId()));
if (null == sweetWechatUser || null == performanceVo) { if (null == sweetWechatUser || null == performanceVo) {
log.info("\n无用户或者演出数据");
continue; continue;
} }
KylinTicketTimesVo kylinTicketTimesVo = performanceVo.getTicketTimeList().get(0); KylinTicketTimesVo kylinTicketTimesVo = performanceVo.getTicketTimeList().get(0);
...@@ -73,10 +74,12 @@ public class SweetWechatTemplateServiceImpl { ...@@ -73,10 +74,12 @@ public class SweetWechatTemplateServiceImpl {
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
log.info("\n超过售卖期");
redisDataUtils.delSweetRemind(remindInfo.getUnionId()); redisDataUtils.delSweetRemind(remindInfo.getUnionId());
continue; continue;
} }
if (-1 == DateUtil.compareStrDay(nowTimeStr, sellTime)) { // 还没到售卖期 if (-1 == DateUtil.compareStrDay(nowTimeStr, sellTime)) { // 还没到售卖期
log.info("\n还没到售卖期");
continue; continue;
} }
// 发送模板消息接口 // 发送模板消息接口
......
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