|
|
@ -203,8 +203,8 @@ public class UserService{ |
|
|
|
* @return 返回查询结果 |
|
|
|
* @return 返回查询结果 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public JSONResponse<DefaultRes, Page<List<UserWithName>>> queryUser(QueryUserForm queryUserForm){ |
|
|
|
public JSONResponse<DefaultRes, Page<List<UserWithName>>> queryUser(QueryUserForm queryUserForm){ |
|
|
|
Page<List<UserWithName>> page=userMapper.countUser(queryUserForm.getName(),queryUserForm.getInfo(),queryUserForm.getUserId(),userPageSize); |
|
|
|
Page<List<UserWithName>> page=userMapper.countUser(queryUserForm.getName(),queryUserForm.getInfo(),queryUserForm.getUserId(),queryUserForm.getTargetUserId(),userPageSize); |
|
|
|
List<UserWithName> userWithNameList=userMapper.queryUser(queryUserForm.getName(),queryUserForm.getInfo(),queryUserForm.getUserId()); |
|
|
|
List<UserWithName> userWithNameList=userMapper.queryUser(queryUserForm.getName(),queryUserForm.getInfo(),queryUserForm.getUserId(),queryUserForm.getTargetUserId()); |
|
|
|
page.setBody(userWithNameList); |
|
|
|
page.setBody(userWithNameList); |
|
|
|
return new JSONResponse<DefaultRes,Page<List<UserWithName>>>(DefaultRes.ok,Result.OK).setBody(page); |
|
|
|
return new JSONResponse<DefaultRes,Page<List<UserWithName>>>(DefaultRes.ok,Result.OK).setBody(page); |
|
|
|
} |
|
|
|
} |
|
|
|