返回pc需要的分页数据

This commit is contained in:
hupeng
2021-06-02 09:03:18 +08:00
parent 8c1e172c24
commit 18d746602e
3 changed files with 18 additions and 12 deletions

View File

@ -183,7 +183,11 @@ public class UserBillController {
newType = Integer.valueOf(type);
}
Long uid = LocalUser.getUser().getUid();
return ApiResult.resultPage(Collections.singletonList(userBillService.getUserBillList(page,limit,uid,newType)),limit);
Map<String, Object> map = userBillService.getUserBillList(page,limit,uid,newType);
Long total = (Long)map.get("total");
Long totalPage = (Long)map.get("totalPage");
return ApiResult.resultPage(total.intValue(),totalPage.intValue(),map.get("list"));
// return ApiResult.resultPage(Collections.singletonList(userBillService.getUserBillList(page,limit,uid,newType)),limit);
}