| | |
| | | package com.xcong.excoin; |
| | | |
| | | |
| | | import cn.hutool.core.date.DateUnit; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import com.xcong.excoin.modules.yunding.service.XchProfitService; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Test |
| | | public void usdtReturnTest() { |
| | | xchProfitService.agentProfitDistributor(); |
| | | xchProfitService.agentUsdtProfitDistributor(); |
| | | } |
| | | |
| | | @Test |
| | | public void dateUtilTest() { |
| | | String day1 = "2021-05-11 23:00:00"; |
| | | String day2 = "2021-05-12 23:01:00"; |
| | | System.out.println(DateUtil.between(DateUtil.parse(day1), DateUtil.parse(day2), DateUnit.DAY)); |
| | | } |
| | | } |