Helius
2021-05-13 13eb3cd1d1533144c49901506c040a11ad3eb0c1
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
29
30
31
32
33
34
35
36
37
38
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));
    }
 
    @Test
    public void becomeAgentTest() {
        xchProfitService.autoBeAgent(40L);
    }
 
    @Test
    public void orderUsdtProfitTest() {
        xchProfitService.usdtProfitDistributorByOrderId(7L);
    }
}