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
0cc5cbfe
Commit
0cc5cbfe
authored
Jul 09, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店ES查询添加查询字段:门店状态
parent
c4ac9afd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
StoreSearchDTO.java
...e-api/src/main/java/com/gic/store/dto/StoreSearchDTO.java
+10
-0
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+5
-0
No files found.
gic-store-api/src/main/java/com/gic/store/dto/StoreSearchDTO.java
View file @
0cc5cbfe
...
...
@@ -28,6 +28,7 @@ public class StoreSearchDTO implements Serializable {
private
Integer
storeTagId
;
private
Integer
completeStatus
;
private
List
<
Integer
>
storeResourceList
;
private
Integer
erpStatus
;
public
Integer
getStoreGroupId
()
{
return
storeGroupId
;
...
...
@@ -222,4 +223,13 @@ public class StoreSearchDTO implements Serializable {
public
void
setStoreResourceList
(
List
<
Integer
>
storeResourceList
)
{
this
.
storeResourceList
=
storeResourceList
;
}
public
Integer
getErpStatus
()
{
return
erpStatus
;
}
public
StoreSearchDTO
setErpStatus
(
Integer
erpStatus
)
{
this
.
erpStatus
=
erpStatus
;
return
this
;
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
0cc5cbfe
...
...
@@ -1480,6 +1480,11 @@ public class StoreApiServiceImpl implements StoreApiService {
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STATUS
.
getField
(),
OperateEnum
.
OPERATE_EQ
,
storeSearchDTO
.
getStatus
());
jsonObjectList
.
add
(
json
);
}
//门店状态
if
(
storeSearchDTO
.
getErpStatus
()
!=
null
)
{
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
ERPSTATUS
.
getField
(),
OperateEnum
.
OPERATE_EQ
,
storeSearchDTO
.
getStatus
());
jsonObjectList
.
add
(
json
);
}
if
(
storeSearchDTO
.
getCompleteStatus
()
!=
null
)
{
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
COMPLETESTATUS
.
getField
(),
OperateEnum
.
OPERATE_EQ
,
storeSearchDTO
.
getCompleteStatus
());
jsonObjectList
.
add
(
json
);
...
...
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