Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cloud
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
data-hook
gic-cloud
Commits
b4b2f008
Commit
b4b2f008
authored
May 11, 2022
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
队列处理逻辑变更
parent
dc359804
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+4
-0
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
b4b2f008
...
@@ -2,6 +2,7 @@ package com.gic.cloud.data.hook.service.impl;
...
@@ -2,6 +2,7 @@ package com.gic.cloud.data.hook.service.impl;
import
cn.medubi.client.utils.LogPak
;
import
cn.medubi.client.utils.LogPak
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ctrip.framework.apollo.Config
;
import
com.ctrip.framework.apollo.Config
;
import
com.ctrip.framework.apollo.ConfigService
;
import
com.ctrip.framework.apollo.ConfigService
;
import
com.gic.cloud.common.api.base.Page
;
import
com.gic.cloud.common.api.base.Page
;
...
@@ -582,11 +583,13 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
...
@@ -582,11 +583,13 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
if
(
taskConditions
.
get
(
i
).
getBuildPermitted
().
equals
(
Global
.
YES
)
if
(
taskConditions
.
get
(
i
).
getBuildPermitted
().
equals
(
Global
.
YES
)
&&
!
taskConditions
.
get
(
i
).
getEnterpriseIds
().
contains
(
"ff8080816dd0385e016ddca436d01fe1"
))
{
&&
!
taskConditions
.
get
(
i
).
getEnterpriseIds
().
contains
(
"ff8080816dd0385e016ddca436d01fe1"
))
{
if
(
taskConditions
.
get
(
i
).
getAllFields
().
size
()
>=
maxFields
)
{
if
(
taskConditions
.
get
(
i
).
getAllFields
().
size
()
>=
maxFields
)
{
logger
.
info
(
"加入相应队列-大数据队列,字段多:{}"
,
JSONObject
.
toJSONString
(
taskConditions
.
get
(
i
)));
bigTaskConditions
.
add
(
taskConditions
.
get
(
i
));
bigTaskConditions
.
add
(
taskConditions
.
get
(
i
));
taskConditions
.
remove
(
i
);
taskConditions
.
remove
(
i
);
continue
;
continue
;
}
else
{
}
else
{
if
(
bigTaskRunningMap
.
isEmpty
()&&
CollectionUtils
.
isEmpty
(
bigTaskConditions
)){
if
(
bigTaskRunningMap
.
isEmpty
()&&
CollectionUtils
.
isEmpty
(
bigTaskConditions
)){
logger
.
info
(
"加入相应队列-大数据队列:{}"
,
JSONObject
.
toJSONString
(
taskConditions
.
get
(
i
)));
bigTaskConditions
.
add
(
taskConditions
.
get
(
i
));
bigTaskConditions
.
add
(
taskConditions
.
get
(
i
));
taskConditions
.
remove
(
i
);
taskConditions
.
remove
(
i
);
continue
;
continue
;
...
@@ -594,6 +597,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
...
@@ -594,6 +597,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
}
}
//push进小队列
//push进小队列
if
(
CollectionUtils
.
isEmpty
(
smallConditions
)||
smallConditions
.
size
()<
SMALL_SIZE
)
{
if
(
CollectionUtils
.
isEmpty
(
smallConditions
)||
smallConditions
.
size
()<
SMALL_SIZE
)
{
logger
.
info
(
"加入相应队列-小数据队列:{}"
,
JSONObject
.
toJSONString
(
taskConditions
.
get
(
i
)));
smallConditions
.
add
(
taskConditions
.
get
(
i
));
smallConditions
.
add
(
taskConditions
.
get
(
i
));
taskConditions
.
remove
(
i
);
taskConditions
.
remove
(
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