Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
03a02fa3
Commit
03a02fa3
authored
Jun 04, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
c95203d4
75abcf02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+7
-8
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
03a02fa3
...
...
@@ -593,7 +593,7 @@ public class StoreApiServiceImpl implements StoreApiService {
dynamicSearchDTO
.
setReturnFileds
(
returnFileds
);
logger
.
info
(
"es查询条件:{}"
,
JSON
.
toJSONString
(
dynamicSearchDTO
,
true
));
ServiceResponse
<
ESResponseQueryBatchDTO
>
response
=
this
.
esBusinessOperaApiService
.
queryDataBatch
(
dynamicSearchDTO
,
false
,
null
);
logger
.
info
(
"es查询结果:,{}"
,
JSON
.
toJSONString
(
response
,
true
));
logger
.
info
(
"es查询结果:,{}"
,
response
.
getResult
().
getRes
().
size
(
));
return
response
;
}
...
...
@@ -1478,10 +1478,6 @@ public class StoreApiServiceImpl implements StoreApiService {
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STOREID
.
getField
(),
OperateEnum
.
OPERATE_ARR_CONTAIN
,
storeSearchDTO
.
getStoreIds
());
jsonObjectList
.
add
(
json
);
}
if
(
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getStoreIdsOfNot
()))
{
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STOREID
.
getField
(),
OperateEnum
.
OPERATE_NOT_CONTAIN
,
storeSearchDTO
.
getStoreIdsOfNot
());
jsonObjectList
.
add
(
json
);
}
if
(
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getStoreInfoIds
())){
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STOREINFOID
.
getField
(),
OperateEnum
.
OPERATE_ARR_CONTAIN
,
storeSearchDTO
.
getStoreInfoIds
());
jsonObjectList
.
add
(
json
);
...
...
@@ -1533,13 +1529,16 @@ public class StoreApiServiceImpl implements StoreApiService {
}
}
enterpriseJson
=
QueryConditionAssemblyUtil
.
createListQueryNode
(
jsonObjectList
,
OperateEnum
.
OPERATE_AND
);
/
/build notIn search
/
***build notIn search****/
if
(
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getStoreIdsOfNot
())){
List
<
JSONObject
>
list
=
new
ArrayList
<>();
list
.
add
(
this
.
buildSearchJSON
(
storeSearchDTO
));
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STOREID
.
getField
(),
OperateEnum
.
OPERATE_ARR_CONTAIN
,
storeSearchDTO
.
getStoreIdsOfNot
());
list
.
add
(
json
);
enterpriseJson
=
QueryConditionAssemblyUtil
.
createListQueryNode
(
list
,
OperateEnum
.
OPERATE_AND_NOT
);
JSONObject
notJSON
=
QueryConditionAssemblyUtil
.
createListQueryNode
(
list
,
OperateEnum
.
OPERATE_AND_NOT
);
List
<
JSONObject
>
_list
=
new
ArrayList
<>();
_list
.
add
(
enterpriseJson
);
_list
.
add
(
notJSON
);
enterpriseJson
=
QueryConditionAssemblyUtil
.
createListQueryNode
(
_list
,
OperateEnum
.
OPERATE_AND
);
}
return
enterpriseJson
;
}
...
...
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