Commit c4266a1a authored by fangxinjiang's avatar fangxinjiang

common 调优

parent 38fefa37
......@@ -67,7 +67,7 @@ public class TSalaryAccountServiceImpl extends ServiceImpl<TSalaryAccountMapper,
long pageCount = baseMapper.getTSalaryAccountPageCountDiy(tSalaryAccount);
page.setTotal(pageCount);
if (pageCount > 0L) {
page.setPages((long) Math.ceil(pageCount / page.getSize()));
page.setPages((long) Math.ceil((pageCount / page.getSize())*1.0));
}
if (page.getCurrent() < 1) {
page.setCurrent(1L);
......
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