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
aebbddc6
Commit
aebbddc6
authored
Jun 23, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店域多次授权错乱调整
parent
d1eb3376
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
StoreSearchDTO.java
...e-api/src/main/java/com/gic/store/dto/StoreSearchDTO.java
+11
-0
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+4
-0
StoreAuthorizationApiServiceImpl.java
.../service/outer/impl/StoreAuthorizationApiServiceImpl.java
+1
-0
No files found.
gic-store-api/src/main/java/com/gic/store/dto/StoreSearchDTO.java
View file @
aebbddc6
...
...
@@ -44,6 +44,7 @@ public class StoreSearchDTO implements Serializable {
private
String
realStatuss
;
private
String
storeTags
;
private
String
storeBrandIds
;
private
Integer
ownType
;
public
Integer
getStoreGroupId
()
{
return
storeGroupId
;
...
...
@@ -311,6 +312,15 @@ public class StoreSearchDTO implements Serializable {
this
.
storeBrandIds
=
storeBrandIds
;
}
public
Integer
getOwnType
()
{
return
ownType
;
}
public
StoreSearchDTO
setOwnType
(
Integer
ownType
)
{
this
.
ownType
=
ownType
;
return
this
;
}
@Override
public
String
toString
()
{
return
"StoreSearchDTO{"
+
...
...
@@ -347,6 +357,7 @@ public class StoreSearchDTO implements Serializable {
", realStatuss='"
+
realStatuss
+
'\''
+
", storeTags='"
+
storeTags
+
'\''
+
", storeBrandIds='"
+
storeBrandIds
+
'\''
+
", ownType='"
+
ownType
+
'\''
+
'}'
;
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
aebbddc6
...
...
@@ -1917,6 +1917,10 @@ public class StoreApiServiceImpl implements StoreApiService {
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
STORECODE
.
getField
(),
OperateEnum
.
OPERATE_EQ
,
storeSearchDTO
.
getStoreCode
());
jsonObjectList
.
add
(
json
);
}
if
(
storeSearchDTO
.
getOwnType
()
!=
null
)
{
json
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
StoreESFieldsEnum
.
OWNTYPE
.
getField
(),
OperateEnum
.
OPERATE_EQ
,
storeSearchDTO
.
getOwnType
());
jsonObjectList
.
add
(
json
);
}
return
json
;
}
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreAuthorizationApiServiceImpl.java
View file @
aebbddc6
...
...
@@ -81,6 +81,7 @@ public class StoreAuthorizationApiServiceImpl implements StoreAuthorizationApiSe
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setEnterpriseId
(
ownEnterpriseId
);
storeSearchDTO
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
storeSearchDTO
.
setOwnType
(
StoreOwnTypeEnum
.
OWNER
.
getCode
());
Long
count
=
this
.
storeApiService
.
queryStoreCountFromEs
(
storeSearchDTO
).
getResult
();
if
(
count
<
0
){
this
.
unionEnterpriseAuthResDetailApiService
.
unionForStore
(
UnionEnterpriseAuthDetailStatusEnum
.
HAS_AUTH
.
getCode
(),
ownEnterpriseId
,
unionEnterpriseId
,
key
,
"授权成功"
);
...
...
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