Commit f23010aa authored by huyuchen's avatar huyuchen

sonarlint问题解决

parent 38fefa37
......@@ -100,7 +100,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
leavePageCount = baseMapper.getLeavePageCount(employeeInfo);
page.setTotal(leavePageCount);
if (leavePageCount > 0L) {
page.setPages((long) Math.ceil(leavePageCount / page.getSize()));
page.setPages((long) Math.ceil(1.0*leavePageCount / page.getSize()));
}
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