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
f4999852
Commit
f4999852
authored
Jun 03, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
fd717f52
92d81906
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+13
-2
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
f4999852
...
...
@@ -210,6 +210,11 @@ public class StoreApiServiceImpl implements StoreApiService {
// 更新缓存
refreshCache
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"enterpriseId"
,
storeDTO
.
getEnterpriseId
());
json
.
put
(
"storeId"
,
storeDTO
.
getStoreId
());
json
.
put
(
"logId"
,
-
1
);
this
.
addStoreToIndexMq
(
json
.
toJSONString
());
return
ServiceResponse
.
success
(
storeDTO
);
}
...
...
@@ -1449,9 +1454,7 @@ public class StoreApiServiceImpl implements StoreApiService {
if
(
StringUtils
.
isNotBlank
(
storeSearchDTO
.
getSearch
()))
{
JSONObject
storeNameSearch
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STORENAME
.
getField
(),
OperateEnum
.
OPERATE_LIKE
,
storeSearchDTO
.
getSearch
());
JSONObject
storeCodeSearch
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STORECODE
.
getField
(),
OperateEnum
.
OPERATE_LIKE
,
storeSearchDTO
.
getSearch
());
JSONObject
storeAreaSearch
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
PROVINCES
.
getField
(),
OperateEnum
.
OPERATE_LIKE
,
storeSearchDTO
.
getSearch
());
List
<
JSONObject
>
list
=
new
ArrayList
<>();
list
.
add
(
storeAreaSearch
);
list
.
add
(
storeCodeSearch
);
list
.
add
(
storeNameSearch
);
json
=
QueryConditionAssemblyUtil
.
createListQueryNode
(
list
,
OperateEnum
.
OPERATE_OR
);
...
...
@@ -1516,6 +1519,14 @@ public class StoreApiServiceImpl implements StoreApiService {
}
}
enterpriseJson
=
QueryConditionAssemblyUtil
.
createListQueryNode
(
jsonObjectList
,
OperateEnum
.
OPERATE_AND
);
//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
);
}
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