From 836bd9b14c68befeabc0ca1773528882c7bf6d9d Mon Sep 17 00:00:00 2001 From: bynt Date: Fri, 19 Nov 2021 16:19:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E4=BF=AE=E6=94=B9=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hchbox/task/AccountTask.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/service/trade-service-source/trade-service-source-taobao/src/main/java/com/hchbox/task/AccountTask.java b/service/trade-service-source/trade-service-source-taobao/src/main/java/com/hchbox/task/AccountTask.java index 8a33ee5..e41413e 100644 --- a/service/trade-service-source/trade-service-source-taobao/src/main/java/com/hchbox/task/AccountTask.java +++ b/service/trade-service-source/trade-service-source-taobao/src/main/java/com/hchbox/task/AccountTask.java @@ -1,24 +1,19 @@ package com.hchbox.task; -import cn.hutool.core.collection.CollUtil; import cn.hutool.core.date.DateUtil; import com.hchbox.constant.DefaultNumberConstants; import com.hchbox.entity.master.SellerAccount; import com.hchbox.repository.master.SellerAccountRepository; import com.hchbox.service.SellerAccountService; -import com.hchbox.service.TaoBaoOrderingService; import com.hchbox.service.TaoBaoRdsPushService; -import com.taobao.api.domain.ArticleSub; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.aspectj.lang.annotation.After; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; import java.util.Date; import java.util.List; -import java.util.Optional; /** * @author Enzo @@ -29,19 +24,16 @@ import java.util.Optional; @RequiredArgsConstructor public class AccountTask { - private final SellerAccountRepository sellerAccountRepository; private final SellerAccountService sellerAccountService; private final TaoBaoRdsPushService taoBaoRdsPushService; - /** * 定时检测授权时间 */ @Scheduled(cron = " 0 1 0 * * ?") - // @Scheduled(cron = "0 0/1 * * * *") @Transactional(rollbackFor = Exception.class) public void deleteAccountAfterExpirationTime() { List sellerAccounts =