|
|
@@ -13,10 +13,10 @@ import com.jzg.mapper.PartnerPartnerAccountMapper;
|
|
|
import com.jzg.mapper.PartnerPremiumDetailsMapper;
|
|
|
import com.jzg.mapper.PartnerUserMapper;
|
|
|
import com.jzg.service.PartnerRuleService;
|
|
|
-import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
@@ -57,8 +57,8 @@ public class TimedTaskUtils {
|
|
|
/**
|
|
|
* TODO 每天晚上 记录佣金过期记录
|
|
|
*/
|
|
|
- @XxlJob("updateOrderDateNoon")
|
|
|
- //@Scheduled(cron = "0 0 0 * * *")
|
|
|
+ //@XxlJob("updateOrderDateNoon")
|
|
|
+ @Scheduled(cron = "0 0 0 * * *")
|
|
|
public void updateOrderDateNoon() {
|
|
|
log.info("记录佣金过期定时任务开始执行:{}", expireDays);
|
|
|
List<PartnerUser> partnerUserList = partnerUserMapper.queryExpiredRecords(expireDays);
|
|
|
@@ -132,8 +132,8 @@ public class TimedTaskUtils {
|
|
|
/**
|
|
|
* TODO: 更新降级考核时间
|
|
|
*/
|
|
|
- @XxlJob("checkCommissionExpireTime")
|
|
|
- //@Scheduled(cron = "0 0 0 * * *")
|
|
|
+ //@XxlJob("checkCommissionExpireTime")
|
|
|
+ @Scheduled(cron = "0 0 0 * * *")
|
|
|
public void checkCommissionExpireTime() {
|
|
|
// TODO等级规则
|
|
|
List<PartnerRuleEntity> partnerRuleEntities = partnerRuleService.queryAll();
|