From e0046ec2c7c5e2d557143508bf7999324613fc5d Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 01 Mar 2022 16:59:24 +0800 Subject: [PATCH] Merge branch 'bea' of http://120.27.238.55:7000/r/exchange into bea --- src/main/java/com/xcong/excoin/quartz/job/ZhiyarRewardJob.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/xcong/excoin/quartz/job/ZhiyarRewardJob.java b/src/main/java/com/xcong/excoin/quartz/job/ZhiyarRewardJob.java index 53bf13f..18dd0b9 100644 --- a/src/main/java/com/xcong/excoin/quartz/job/ZhiyarRewardJob.java +++ b/src/main/java/com/xcong/excoin/quartz/job/ZhiyarRewardJob.java @@ -2,6 +2,7 @@ import com.xcong.excoin.modules.coin.service.ZhiyaService; import lombok.extern.slf4j.Slf4j; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @@ -12,6 +13,7 @@ */ @Slf4j @Component +@ConditionalOnProperty(prefix = "app", name = "newest-price-update-job", havingValue = "true") public class ZhiyarRewardJob { @@ -23,7 +25,7 @@ */ @Scheduled(cron = "0 * * * * ? ") // @Scheduled(cron = "0 0 0 * * ? ") - public void updateZhiyaPrice() { + public void updateDoingPrice() { log.info("#质押奖励计算#"); try { //静态算力 -- Gitblit v1.9.1