Helius
2021-05-12 838aab39c50ec148dfdb499b1f24e53f9868600e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
import org.springframework.boot.test.context.SpringBootTest;
 
@SpringBootTest
public class XchTest {
 
    @Autowired
    private XchProfitService xchProfitService;
 
    @Test
    public void usdtReturnTest() {
        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));
    }
}