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
4e636fe9
Commit
4e636fe9
authored
Feb 09, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店品牌变更
parent
50a96bef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
StoreAuthorizationApiService.java
...a/com/gic/store/service/StoreAuthorizationApiService.java
+10
-10
UnionStoreChangeServiceImpl.java
...m/gic/store/service/impl/UnionStoreChangeServiceImpl.java
+1
-1
StoreAuthorizationApiServiceImpl.java
.../service/outer/impl/StoreAuthorizationApiServiceImpl.java
+6
-6
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreAuthorizationApiService.java
View file @
4e636fe9
...
...
@@ -13,22 +13,22 @@ import com.gic.store.dto.StoreDTO;
public
interface
StoreAuthorizationApiService
{
/**
* authStore 联合商户
授权初始化
* authStore 联合商户
门店授权接口
* @Title: authStore
* @Description:
* @Description:
联合商户门店授权接口
* @author zhiwj
* @param storeResourceId
* @param
to
EnterpriseId
* @param
e
nterpriseId
* @param
union
EnterpriseId
* @param
ownE
nterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse
<
Void
>
authStore
(
Integer
storeResourceId
,
Integer
toEnterpriseId
,
Integer
e
nterpriseId
);
ServiceResponse
<
Void
>
authStore
(
Integer
storeResourceId
,
Integer
unionEnterpriseId
,
Integer
ownE
nterpriseId
);
/**
* reAuthStore
* @Title: reAuthStore
* @Description:
* @Description:
重新授权接口
* @author zhiwj
* @param key
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
...
...
@@ -85,12 +85,12 @@ public interface StoreAuthorizationApiService {
/**
* cancelStoreAll
* @Title: cancelStoreAll
* @Description:
* @Description:
取消授权接口
* @author zhiwj
* @param
from
EnterpriseId
* @param
e
nterpriseId
* @param
union
EnterpriseId
* @param
OwnE
nterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
* @throws
*/
ServiceResponse
<
Void
>
cancelStoreAll
(
Integer
fromEnterpriseId
,
Integer
e
nterpriseId
);
ServiceResponse
<
Void
>
cancelStoreAll
(
Integer
unionEnterpriseId
,
Integer
OwnE
nterpriseId
);
}
gic-store-service/src/main/java/com/gic/store/service/
outer/
impl/UnionStoreChangeServiceImpl.java
→
gic-store-service/src/main/java/com/gic/store/service/impl/UnionStoreChangeServiceImpl.java
View file @
4e636fe9
package
com
.
gic
.
store
.
service
.
outer
.
impl
;
package
com
.
gic
.
store
.
service
.
impl
;
import
com.gic.store.dao.mapper.TabUnionStoreChangeLogMapper
;
import
com.gic.store.entity.TabUnionStoreChangeLog
;
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreAuthorizationApiServiceImpl.java
View file @
4e636fe9
...
...
@@ -65,7 +65,7 @@ public class StoreAuthorizationApiServiceImpl implements StoreAuthorizationApiSe
private
StoreBrandService
storeBrandService
;
@Override
public
ServiceResponse
<
Void
>
authStore
(
Integer
storeResourceId
,
Integer
toEnterpriseId
,
Integer
e
nterpriseId
)
{
public
ServiceResponse
<
Void
>
authStore
(
Integer
storeResourceId
,
Integer
unionEnterpriseId
,
Integer
ownE
nterpriseId
)
{
StoreWidgetDTO
storeWidgetDTO
=
this
.
storeWidgetApiService
.
getStoreWidget
(
storeResourceId
).
getResult
();
if
(
storeWidgetDTO
==
null
){
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"门店资源Id不存在"
);
...
...
@@ -73,18 +73,18 @@ public class StoreAuthorizationApiServiceImpl implements StoreAuthorizationApiSe
String
key
=
ToolUtil
.
randomUUID
();
Integer
authMode
=
storeWidgetDTO
.
getAuthMode
();
if
(
authMode
.
equals
(
AuthModeEnum
.
NO
.
getCode
())){
this
.
unionEnterpriseAuthResDetailApiService
.
unionForStore
(
UnionEnterpriseAuthDetailStatusEnum
.
HAS_AUTH
.
getCode
(),
enterpriseId
,
to
EnterpriseId
,
key
,
"门店资源不授权"
);
this
.
unionEnterpriseAuthResDetailApiService
.
unionForStore
(
UnionEnterpriseAuthDetailStatusEnum
.
HAS_AUTH
.
getCode
(),
ownEnterpriseId
,
union
EnterpriseId
,
key
,
"门店资源不授权"
);
return
ServiceResponse
.
success
();
}
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setEnterpriseId
(
e
nterpriseId
);
storeSearchDTO
.
setEnterpriseId
(
ownE
nterpriseId
);
storeSearchDTO
.
setSearchJson
(
storeWidgetDTO
.
getSearchParam
());
Long
count
=
this
.
storeApiService
.
queryStoreCountFromEs
(
storeSearchDTO
).
getResult
();
if
(
count
<
0
){
this
.
unionEnterpriseAuthResDetailApiService
.
unionForStore
(
UnionEnterpriseAuthDetailStatusEnum
.
HAS_AUTH
.
getCode
(),
enterpriseId
,
to
EnterpriseId
,
key
,
"授权成功"
);
this
.
unionEnterpriseAuthResDetailApiService
.
unionForStore
(
UnionEnterpriseAuthDetailStatusEnum
.
HAS_AUTH
.
getCode
(),
ownEnterpriseId
,
union
EnterpriseId
,
key
,
"授权成功"
);
}
this
.
unionEnterpriseAuthResDetailApiService
.
unionForStore
(
UnionEnterpriseAuthDetailStatusEnum
.
RESOURCE_DEALING
.
getCode
(),
enterpriseId
,
to
EnterpriseId
,
key
,
"资源授权中"
);
this
.
queryStoreByPage
(
count
,
storeSearchDTO
,
toEnterpriseId
,
e
nterpriseId
,
key
);
this
.
unionEnterpriseAuthResDetailApiService
.
unionForStore
(
UnionEnterpriseAuthDetailStatusEnum
.
RESOURCE_DEALING
.
getCode
(),
ownEnterpriseId
,
union
EnterpriseId
,
key
,
"资源授权中"
);
this
.
queryStoreByPage
(
count
,
storeSearchDTO
,
unionEnterpriseId
,
ownE
nterpriseId
,
key
);
return
ServiceResponse
.
success
();
}
...
...
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