医案推荐图书

This commit is contained in:
wuchunlei
2023-11-27 11:06:10 +08:00
parent a307ce1881
commit 5473b21747

View File

@@ -62,7 +62,7 @@ public class BookMedicalRecordsController {
Page<BookEntity> page = new Page<>();
page.setRecords(list);
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);
}
/**