Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
head_group
xyqb-user2
Commits
a3a970bf
Commit
a3a970bf
authored
Oct 29, 2019
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
e16246fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
UserQueryLogController.java
.../controller/internal/querylog/UserQueryLogController.java
+1
-1
Base64.java
src/main/java/cn/quantgroup/xyqb/util/encrypt/Base64.java
+1
-1
DynamicTest.java
src/test/java/demo/DynamicTest.java
+3
-0
No files found.
src/main/java/cn/quantgroup/xyqb/controller/internal/querylog/UserQueryLogController.java
View file @
a3a970bf
...
@@ -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
)
{
...
...
src/main/java/cn/quantgroup/xyqb/util/encrypt/Base64.java
View file @
a3a970bf
...
@@ -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
;
}
}
...
...
src/test/java/demo/DynamicTest.java
View file @
a3a970bf
...
@@ -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
;
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment