CodePudding user response:
@ Override
Public ListFindPage (String appId, int pageNum, int pageSize) {
//page
PageHelper PageHelper=new PageHelper ();
//filter
Example Example=new Example (User. The class);
Example. The Criteria the Criteria=Example. CreateCriteria ();
If (appId!=null) {
Criteria. AndEqualTo (" appId ", appId);
}
//if (StringUtils. IsNotBlank (appId)) {
////filter
//example. CreateCriteria (). OrLike (" username ", "%" + key toLowerCase () + "%"). The orEqualTo (" phone ", the key toLowerCase ());
//}
//is paging parameters, the current number of pages, each page display number
PageHelper. StartPage (pageNum, pageSize);
//query
//ListThe userList=userMapper. SelectByExample (example);
ListThe userList=userMapper. SelectByExampleAndRowBounds (example,));
return userList;
}
Paging query call selectByExampleAndRowBounds this method?
The inside of the parameters, the second how to write?
CodePudding user response:
Use pagehelper canCodePudding user response: