admin
2024-07-26 c0fa314702c6bb19b0c8975dfaee8e39d1896844
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
package com.taoke.autopay;
 
import com.taoke.autopay.dao.ClientInfoMapper;
import com.taoke.autopay.entity.ClientInfo;
import com.taoke.autopay.service.ClientInfoService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
 
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.List;
 
/**
 * @author hxh
 * @title: ClientTest
 * @description: TODO
 * @date 2024/7/26 16:11
 */
@SpringBootTest
public class ClientTest {
 
    @Resource
    private ClientInfoService clientInfoService;
 
    @Test
    public void add(){
        ClientInfoMapper.DaoQuery query = new ClientInfoMapper.DaoQuery();
        query.sortList = Arrays.asList(new String[]{"id desc"});
        query.count = 1;
        List<ClientInfo> list = clientInfoService.list(query);
 
    }
}