vip过期使用的勋章自动摘除,勋章过期
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package com.accompany.scheduler.task.dress;
|
||||
|
||||
import com.accompany.business.service.medal.UserMedalService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class UserMedalTask {
|
||||
|
||||
@Autowired
|
||||
private UserMedalService userMedalService;
|
||||
|
||||
/**
|
||||
* 核销到期的勋章
|
||||
*/
|
||||
@Scheduled(cron = "0 0/10 * * * ?")
|
||||
public void checkVip() {
|
||||
userMedalService.doExpireCheck();
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user