医案推荐图书
This commit is contained in:
@@ -62,7 +62,7 @@ public class BookMedicalRecordsController {
|
|||||||
Page<BookEntity> page = new Page<>();
|
Page<BookEntity> page = new Page<>();
|
||||||
page.setRecords(list);
|
page.setRecords(list);
|
||||||
page.setTotal(list.size());
|
page.setTotal(list.size());
|
||||||
page.setPages(Math.round(list.size()/page.getSize()));
|
page.setPages((int)Math.ceil(list.size()/page.getSize()));
|
||||||
return R.ok().put("page", page);
|
return R.ok().put("page", page);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user