admin
2024-06-16 6dc80d22028789ff8f6f42e552247e75e93516bc
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.taoke.autopay;
 
import com.taoke.autopay.dao.ClientInfoMapper;
import com.taoke.autopay.dao.KeyOrderMapper;
import com.taoke.autopay.entity.ClientInfo;
import com.taoke.autopay.entity.OrderDistributeCountInfo;
import com.taoke.autopay.exception.KeyOrderException;
import com.taoke.autopay.service.KeyOrderService;
import com.taoke.autopay.utils.StringUtil;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
 
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
 
//@SpringBootTest
class AutopayApplicationTests {
 
    @Resource
    private ClientInfoMapper mapper;
 
    @Resource
    private KeyOrderService keyOrderService;
 
    @Resource
    private KeyOrderMapper keyOrderMapper;
 
    @Test
    void test2() throws KeyOrderException {
 
        keyOrderService.addKeyOrder("【\uD83D\uDC4D z h`i付宝\uD83D\uDC4D】亲,复制 T:/TQEx7jy96Gr  o:/b CA5742 2020/12/07打开支付宝就可以帮我\uD83C\uDFEE付款啦\uD83D\uDCAAhttps://ur.alipay.com/_72G9ZwXA6jz28jdJUNhUx7");
    }
 
    @Test
    void test3() throws Exception {
 
        Long uid =  keyOrderService.getCanDistributeUid();
        System.out.println(uid);
    }
 
    @Test
    void contextLoads() {
        ClientInfo info=new ClientInfo();
        info.setName("超级管理员");
        info.setAccount("admin");
        info.setPwd(StringUtil.Md5("123456"));
        info.setCreateTime(new Date());
        info.setRule(ClientInfo.RULE_ADMIN);
        mapper.insertSelective(info);
 
        ClientInfoMapper.DaoQuery query=new ClientInfoMapper.DaoQuery();
        query.count=10;
        query.start = 0;
       List<ClientInfo> list = mapper.list(query);
       System.out.println(list.size());
 
    }
 
}