| | |
| | | package cc.mrbird.febs; |
| | | |
| | | import cc.mrbird.febs.dapp.entity.DappMemberEntity; |
| | | import cc.mrbird.febs.dapp.mapper.DappMemberDao; |
| | | import cc.mrbird.febs.job.MineProfitJob; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @author wzy |
| | | * @author |
| | | * @date 2022-03-28 |
| | | **/ |
| | | @SpringBootTest |
| | |
| | | |
| | | @Autowired |
| | | private MineProfitJob mineProfitJob; |
| | | @Autowired |
| | | private DappMemberDao dappMemberDao; |
| | | |
| | | @Test |
| | | public void incomeTest() { |
| | | mineProfitJob.start(); |
| | | } |
| | | |
| | | @Test |
| | | public void userTest() { |
| | | DappMemberEntity member = dappMemberDao.selectById(6L); |
| | | mineProfitJob.calAgentMoney(member, BigDecimal.TEN); |
| | | } |
| | | } |