Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
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
雷紫添
xzxt-api-report
Commits
bc7cfaae
Commit
bc7cfaae
authored
Jan 18, 2022
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
撤回集群配置
parent
f64a456f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
24 deletions
+6
-24
src/main/java/com/founder/file/service/impl/XjFlwsServiceImpl.java
+6
-24
No files found.
src/main/java/com/founder/file/service/impl/XjFlwsServiceImpl.java
View file @
bc7cfaae
...
...
@@ -38,34 +38,16 @@ public class XjFlwsServiceImpl implements XjFlwsService {
@Override
public
String
getJzzjkFlwsnrToXjxz
(
Date
date
,
String
xxzjbh
)
throws
IOException
{
if
(
clusterId
>
clusterSize
){
return
"集群数量有误,集群id不能大于集群数量!"
;
}
Integer
count
=
xjxzFlwsMapper
.
getFlwsCountWzByDate
(
date
,
xxzjbh
);
int
page
=
(
count
/
poorSize
)
+
1
;
ArrayList
<
FutureTask
<
Map
<
String
,
Integer
>>>
list
=
new
ArrayList
<>();
int
lmt
=
count
/
clusterSize
;
int
remainder
=
count
%
clusterSize
;
if
(
clusterId
<=
remainder
)
{
lmt
++;
}
int
cou
=
lmt
/
poorSize
;
int
remainderCou
=
lmt
%
poorSize
;
int
begin
=
(
clusterId
-
1
)
*
lmt
;
if
(
remainder
>
0
&&
clusterId
>
remainder
)
{
begin
=
begin
+
remainder
;
}
int
end
;
for
(
int
i
=
0
;
i
<
poorSize
;
i
++)
{
int
finalBegin
=
begin
;
end
=
begin
+
cou
;
if
(
i
<
remainderCou
)
{
end
++;
}
begin
=
end
;
int
finalEnd
=
end
;
for
(
int
i
=
0
;
i
<
page
;
i
++)
{
int
limit
=
poorSize
;
int
begin
=
i
*
limit
;
int
end
=
(
i
+
1
)
*
limit
;
FutureTask
<
Map
<
String
,
Integer
>>
xsAjTask
=
new
FutureTask
<>(()
->
{
HashMap
<
String
,
Integer
>
map
=
new
HashMap
<>();
List
<
Map
<
String
,
String
>>
flwsList
=
xjxzFlwsMapper
.
getFlwsWzByDate
(
date
,
xxzjbh
,
finalBegin
,
finalE
nd
);
List
<
Map
<
String
,
String
>>
flwsList
=
xjxzFlwsMapper
.
getFlwsWzByDate
(
date
,
xxzjbh
,
begin
,
e
nd
);
ArrayList
<
Exception
>
exceptions
=
new
ArrayList
<>();
System
.
out
.
println
(
"+++++++++++++"
+
flwsList
.
size
());
int
j
=
1
;
...
...
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