金币兑换钻石-公会金币结算-周期结算

This commit is contained in:
2022-11-28 14:55:23 +08:00
parent 52f8f01a68
commit c68ea84784

View File

@@ -5,10 +5,12 @@ import com.accompany.scheduler.base.BaseTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Slf4j
public class ClanGoldSettlementTask extends BaseTask {
@Component
public class ClanGoldSettlementTask {
@Autowired
private ClanGoldSettlementService service;
@@ -19,10 +21,12 @@ public class ClanGoldSettlementTask extends BaseTask {
* */
@Scheduled(cron = "0 0 0 ? * MON")
public void clanGoldSettlement() throws InterruptedException {
long now = System.currentTimeMillis();
log.info("clanGoldSettlement() start..........");
service.settlement(null);
log.info("clanGoldSettlement() finish..........");
long finish = System.currentTimeMillis();
log.info("clanGoldSettlement() cost {}ms finish..........", finish-now);
}
}