Commit a3a970bf authored by 技术部-任文超's avatar 技术部-任文超

修复bug

parent e16246fa
......@@ -122,7 +122,7 @@ public class UserQueryLogController {
uqp.setPageId(pageId);
uqp.setPageList(userQueryLogs);
int yu = total.intValue() % pageSize;
Double d = Math.ceil(total / pageSize);
Double d = Math.ceil((double)total / (double)pageSize);
uqp.setPages(yu > 0 ? d.intValue() + 1 : d.intValue());
return JsonResult.buildSuccessResult("查询成功", uqp);
} catch (Exception e) {
......
......@@ -202,7 +202,7 @@ class Base64 {
if (isChunked) {
nbrChunks =
(CHUNK_SEPARATOR.length == 0 ? 0 : (int) Math.ceil((float) encodedDataLength / CHUNK_SIZE));
(CHUNK_SEPARATOR.length == 0 ? 0 : Double.valueOf(Math.ceil((double) encodedDataLength / (double)CHUNK_SIZE)).intValue());
encodedDataLength += nbrChunks * CHUNK_SEPARATOR.length;
}
......
......@@ -84,6 +84,9 @@ public class DynamicTest {
@Override
public Integer next() {
if(!hasNext()){
throw new NoSuchElementException();
}
return current;
}
};
......
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