瀏覽代碼

readMessage()、secondTradeRemind()、secondTradeConfirm()方法迁移到xxljob中

qrs 21 小時之前
父節點
當前提交
1d0028e492
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      alien-store/src/main/java/shop/alien/store/task/ScheduledTask.java

+ 3 - 3
alien-store/src/main/java/shop/alien/store/task/ScheduledTask.java

@@ -299,7 +299,7 @@ public class ScheduledTask {
     /**
      * 二手交易平台 - 交易时间前的十分钟和十五分钟之间  给买家和卖家发送通知提醒
      */
-    @Scheduled(cron = "0 * * * * ?")
+//    @Scheduled(cron = "0 * * * * ?")
     public void secondTradeRemind() throws Exception {
         LocalDateTime now = LocalDateTime.now().withSecond(0).withNano(0);
 
@@ -429,7 +429,7 @@ public class ScheduledTask {
     /**
      * 二手交易平台 - 到达交易时间时,给买家和卖家发送交易确认提醒
      */
-    @Scheduled(cron = "0 * * * * ?")
+//    @Scheduled(cron = "0 * * * * ?")
     public void secondTradeConfirm() throws Exception {
         LocalDateTime now = LocalDateTime.now().withSecond(0).withNano(0);
 
@@ -508,7 +508,7 @@ public class ScheduledTask {
     /**
      * 二手交易平台 - 每分钟从redis中读取已读的消息id 并将数据库设为已读
      */
-    @Scheduled(cron = "0 * * * * ?")
+//    @Scheduled(cron = "0 * * * * ?")
     public void readMessage() {
         try {
             if (CollectionUtil.isEmpty(baseRedisService.getList("readMessageIdKey"))) return;