日志更新页数

parent cfab8080
......@@ -110,8 +110,10 @@ public class UserQueryLogController {
uqp.setPageSize(pageSize);
uqp.setPageId(pageId);
uqp.setPageList(userQueryLogs);
int yu=total.intValue()%pageSize;
Double d=Math.ceil(total/pageSize);
uqp.setPages(d.intValue());
uqp.setPages(yu>0?d.intValue()+1:d.intValue());
return JsonResult.buildSuccessResult("查询成功",uqp);
}catch(Exception e){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment