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);
|
|
}
|
}
|