| | |
| | | import cc.mrbird.febs.common.contants.AppContants; |
| | | import cc.mrbird.febs.dapp.entity.DappMemberEntity; |
| | | import cc.mrbird.febs.dapp.mapper.DappMemberDao; |
| | | import cc.mrbird.febs.job.MineProfitJob; |
| | | import cn.hutool.core.codec.Base64; |
| | | import cn.hutool.core.date.DateTime; |
| | | import cn.hutool.core.date.DateUnit; |
| | |
| | | **/ |
| | | @SpringBootTest |
| | | public class JunitTest { |
| | | |
| | | @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); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | DateTime tomorrow = DateUtil.beginOfDay(DateUtil.tomorrow()); |