Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
0fcd734b
Commit
0fcd734b
authored
Oct 29, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
500条分页插入
parent
1f6df762
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
QywxGroupSyncOperation.java
...ic/haoban/manage/service/task/QywxGroupSyncOperation.java
+4
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/QywxGroupSyncOperation.java
View file @
0fcd734b
...
...
@@ -224,12 +224,13 @@ public class QywxGroupSyncOperation implements BaseSyncOperation {
}).
collect
(
Collectors
.
toList
());
//插入不存在的我们pre表的企业微信数据
int
count
=
preDealLogList
.
size
();
int
pre
=
count
/
1000
+
1
;
int
pageSize
=
500
;
int
pre
=
count
/
pageSize
+
1
;
int
i
=
0
;
while
(
i
<
pre
){
i
++;
int
fromIndex
=
(
i
-
1
)*
1000
;
int
toIndex
=
(
count
-
fromIndex
)
>
1000
?
(
fromIndex
+
1000
):
count
;
int
fromIndex
=
(
i
-
1
)*
pageSize
;
int
toIndex
=
(
count
-
fromIndex
)
>
pageSize
?
(
fromIndex
+
pageSize
):
count
;
List
<
TabHaobanPreDealLog
>
subList
=
preDealLogList
.
subList
(
fromIndex
,
toIndex
);
preDealService
.
insert
(
subList
);
}
...
...
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