|
|
|
@ -199,13 +199,13 @@ class HelpApplicationTests { |
|
|
|
|
//查询用户列表
|
|
|
|
|
@Test |
|
|
|
|
public void queryUser(){ |
|
|
|
|
Page<List<UserWithName>> count=userMapper.countUser("6",null,"123",10); |
|
|
|
|
Page<List<UserWithName>> count=userMapper.countUser("6",null,"123","222", 10); |
|
|
|
|
Assertions.assertTrue(count.getCount()>0); |
|
|
|
|
|
|
|
|
|
List<UserWithName> userWithNames =userMapper.queryUser("2",null,"123"); |
|
|
|
|
List<UserWithName> userWithNames =userMapper.queryUser("2",null,"123","222"); |
|
|
|
|
Assertions.assertFalse(userWithNames.isEmpty()); |
|
|
|
|
|
|
|
|
|
userWithNames =userMapper.queryUser("2","2", "123"); |
|
|
|
|
userWithNames =userMapper.queryUser("2","2", "123","222"); |
|
|
|
|
Assertions.assertFalse(userWithNames.isEmpty()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|