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

修复bug

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