Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
85a84c47
Commit
85a84c47
authored
Mar 14, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
aa3939bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ReadXmlApi.java
src/main/java/com/yxproject/start/api/ReadXmlApi.java
+2
-2
No files found.
src/main/java/com/yxproject/start/api/ReadXmlApi.java
View file @
85a84c47
...
...
@@ -170,14 +170,14 @@ public class ReadXmlApi {
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
if
(
mapList
.
size
()>=
Integer
.
parseInt
(
pageSize
)){
int
max
=
Integer
.
parseInt
(
currPage
)*
Integer
.
parseInt
(
pageSize
);
int
min
=
(
Integer
.
parseInt
(
currPage
)-
1
)*
Integer
.
parseInt
(
pageSize
);
int
min
=
(
Integer
.
parseInt
(
currPage
)-
1
)*
Integer
.
parseInt
(
pageSize
)
+
1
;
List
list
=
new
ArrayList
();
if
(
mapList
.
size
()<
max
){
for
(
int
i
=
min
-
1
;
i
<
mapList
.
size
();
i
++){
list
.
add
(
mapList
.
get
(
i
));
}
}
else
{
for
(
int
i
=
min
;
i
<
max
-
1
;
i
++){
for
(
int
i
=
min
-
1
;
i
<
max
;
i
++){
list
.
add
(
mapList
.
get
(
i
));
}
...
...
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