From 2b6e54e96e32999f1c2ef03f54c636d5f5961dee Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 02 Mar 2022 10:49:28 +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 |    7 ++++++-
 1 files changed, 6 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 92172e7..8f17490 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 = "other-job", havingValue = "true")
 public class ZhiyarRewardJob {
 
 
@@ -21,11 +23,14 @@
     /**
      * 质押奖励计算
      */
-    @Scheduled(cron = "0 0 0 * * ? ")
+    @Scheduled(cron = "0 * * * * ? ")
+//    @Scheduled(cron = "0 0 0 * * ? ")
     public void updateDoingPrice() {
         log.info("#质押奖励计算#");
         try {
+            //静态算力
             zhiyaService.grantZhiyaAmount();
+            //todo -- 动态算力计算
         } catch (Exception e) {
             log.error("#质押奖励计算错误#", e);
         }

--
Gitblit v1.9.1