|
@@ -80,7 +80,15 @@ public class SceneController extends BaseController {
|
|
|
String username = JwtUtil.getUsername(token);
|
|
|
param.setHasFolder(0);
|
|
|
JSONObject jsonObject = sceneProService.newList(param, username);
|
|
|
- return Result.success(jsonObject.getJSONObject("pageInfo"));
|
|
|
+ JSONObject pageInfo = jsonObject.getJSONObject("pageInfo");
|
|
|
+ pageInfo.put("endRow",0);
|
|
|
+ pageInfo.put("firstPage",param.getPageNum());
|
|
|
+ pageInfo.put("hasNextPage",false);
|
|
|
+ pageInfo.put("isLastPage",0);
|
|
|
+ pageInfo.put("size",pageInfo.get("total"));
|
|
|
+ Integer pages = pageInfo.getInteger("total") / param.getPageSize();
|
|
|
+ pageInfo.put("pages",pageInfo.getInteger("total") % param.getPageSize() == 0 ? pages : pages + 1);
|
|
|
+ return Result.success(pageInfo);
|
|
|
}
|
|
|
|
|
|
/**
|