KKSU
2024-09-30 36be00e0f3cbe0d559c646fd2977e6e3a74aa6f9
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,9 +23,9 @@
    /**
     * 质押奖励计算
     */
    @Scheduled(cron = "0 * * * * ? ")
//    @Scheduled(cron = "0 0 0 * * ? ")
    public void updateZhiyaPrice() {
//    @Scheduled(cron = "0 * * * * ? ")
    @Scheduled(cron = "0 0 0 * * ? ")
    public void updateDoingPrice() {
        log.info("#质押奖励计算#");
        try {
            //静态算力