From 0fabc4bdd5add597e9c29e966005602e11e06fca Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 03 Jul 2020 10:30:03 +0800 Subject: [PATCH] modfiy --- src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java | 1 + src/main/java/com/xcong/excoin/modules/blackchain/UsdtEthService.java | 11 +++++++++++ src/main/java/com/xcong/excoin/quartz/job/NotionalPoolingJob.java | 16 ++++++++++++++++ 3 files changed, 28 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/blackchain/UsdtEthService.java b/src/main/java/com/xcong/excoin/modules/blackchain/UsdtEthService.java new file mode 100644 index 0000000..0041fef --- /dev/null +++ b/src/main/java/com/xcong/excoin/modules/blackchain/UsdtEthService.java @@ -0,0 +1,11 @@ +package com.xcong.excoin.modules.blackchain; + +import org.springframework.stereotype.Component; + +/** + * @author wzy + * @date 2020-07-03 + **/ +@Component +public class UsdtEthService { +} diff --git a/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java b/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java index 328048c..d5a5246 100644 --- a/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java +++ b/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java @@ -146,6 +146,7 @@ member.setCertifyStatus(MemberEntity.CERTIFY_STATUS_UN_SUBMIT); member.setIsForce(0); member.setIsProfit(0); + member.setSpread(BigDecimal.ZERO); memberDao.insert(member); String inviteId = ShareCodeUtil.toSerialCode(member.getId()); diff --git a/src/main/java/com/xcong/excoin/quartz/job/NotionalPoolingJob.java b/src/main/java/com/xcong/excoin/quartz/job/NotionalPoolingJob.java index 0c50b25..40a0def 100644 --- a/src/main/java/com/xcong/excoin/quartz/job/NotionalPoolingJob.java +++ b/src/main/java/com/xcong/excoin/quartz/job/NotionalPoolingJob.java @@ -1,6 +1,7 @@ package com.xcong.excoin.quartz.job; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; /** @@ -13,4 +14,19 @@ @Component @ConditionalOnProperty(prefix = "app", name = "block-job", havingValue = "true") public class NotionalPoolingJob { + + @Scheduled(cron = "0 5/30 * * * ? ") + public void poolUsdtEth() { + + } + + @Scheduled(cron = "0 2/8 * * * ? ") + public void usdtEthPoolCheck() { + + } + + @Scheduled(cron = "0 2/30 * * * ? ") + public void poolEth() { + + } } -- Gitblit v1.9.1