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 =