|
|
@@ -70,9 +70,10 @@ public class UserSpaceDetailController {
|
|
|
Page<InvitationRecord> records = new Page<InvitationRecord>();
|
|
|
String jsonStr = URLDecoder.decode(data, "UTF-8");
|
|
|
PageInfo pageInfo = FlexJsonUtils.fromJson(jsonStr, PageInfo.class);
|
|
|
- PageParams pageParams = new PageParams();
|
|
|
- pageParams.setPage(pageInfo.getPageNumber());
|
|
|
- pageParams.setSize(pageInfo.getPageSize());
|
|
|
+ com.uas.platform.core.model.PageParams params = new com.uas.platform.core.model.PageParams();
|
|
|
+ params.setPage(pageInfo.getPageNumber());
|
|
|
+ params.setCount(pageInfo.getPageSize());
|
|
|
+ PageParams pageParams = searchService.convertPageParams(params, null);
|
|
|
try {
|
|
|
if (pageInfo.getEnuu() != null) {
|
|
|
pageParams.getFilters().put("in_enuu", pageInfo.getEnuu());
|
|
|
@@ -82,8 +83,7 @@ public class UserSpaceDetailController {
|
|
|
if (pageInfo.getUseruu() != null) {
|
|
|
pageParams.getFilters().put("in_useruu", pageInfo.getUseruu());
|
|
|
}
|
|
|
- SPage<InvitationRecord> details = searchService.getInvitationByKeyword(pageInfo.getKeyword(),
|
|
|
- pageParams);
|
|
|
+ SPage<InvitationRecord> details = searchService.getInvitationByKeyword(pageInfo.getKeyword(), pageParams);
|
|
|
records.setContent(details.getContent());
|
|
|
records.setNumber(details.getPage());
|
|
|
records.setTotalElements(details.getTotalElement());
|