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
eadf1cc3
Commit
eadf1cc3
authored
Nov 12, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通过电话号码查询商户
parent
34b5bb15
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
0 deletions
+23
-0
StoreAuthorizationApiService.java
...a/com/gic/store/service/StoreAuthorizationApiService.java
+2
-0
TabStoreMapper.java
...rc/main/java/com/gic/store/dao/mapper/TabStoreMapper.java
+4
-0
StoreService.java
...ice/src/main/java/com/gic/store/service/StoreService.java
+2
-0
StoreServiceImpl.java
...ain/java/com/gic/store/service/impl/StoreServiceImpl.java
+5
-0
StoreAuthorizationApiServiceImpl.java
.../service/outer/impl/StoreAuthorizationApiServiceImpl.java
+6
-0
TabStoreMapper.xml
...tore-service/src/main/resources/mapper/TabStoreMapper.xml
+4
-0
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreAuthorizationApiService.java
View file @
eadf1cc3
...
...
@@ -25,4 +25,6 @@ public interface StoreAuthorizationApiService {
ServiceResponse
<
Void
>
saveStore
(
StoreDTO
storeDTO
);
ServiceResponse
<
Void
>
cancelStore
(
Integer
storeInfoId
,
Integer
enterpriseId
);
ServiceResponse
<
Void
>
cancelStoreAll
(
Integer
fromEnterpriseId
,
Integer
enterpriseId
);
}
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreMapper.java
View file @
eadf1cc3
...
...
@@ -68,5 +68,8 @@ public interface TabStoreMapper {
int
cancelAuthStore
(
@Param
(
"storeInfoIdList"
)
List
<
Integer
>
storeInfoIdList
,
@Param
(
"toEnterpriseId"
)
Integer
toEnterpriseId
);
int
cancelAuthStoreAll
(
@Param
(
"fromEnterpriseId"
)
Integer
fromEnterpriseId
,
@Param
(
"toEnterpriseId"
)
Integer
toEnterpriseId
);
List
<
Integer
>
listStoreInfoIdByStoreIds
(
@Param
(
"ids"
)
List
<
Integer
>
ids
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/StoreService.java
View file @
eadf1cc3
...
...
@@ -93,6 +93,8 @@ public interface StoreService {
int
cancelAuthStore
(
List
<
Integer
>
storeInfoIdList
,
Integer
toEnterpriseId
);
int
cancelAuthStoreAll
(
Integer
fromEnterpriseId
,
Integer
toEnterpriseId
);
Integer
getStoreOwnerByStoreInfoId
(
Integer
enterpriseId
,
Integer
storeInfoId
);
Integer
getStoreIdByStoreInfoId
(
Integer
enterpriseId
,
Integer
storeInfoId
);
...
...
gic-store-service/src/main/java/com/gic/store/service/impl/StoreServiceImpl.java
View file @
eadf1cc3
...
...
@@ -429,6 +429,11 @@ public class StoreServiceImpl implements StoreService {
}
@Override
public
int
cancelAuthStoreAll
(
Integer
fromEnterpriseId
,
Integer
toEnterpriseId
)
{
return
this
.
tabStoreMapper
.
cancelAuthStoreAll
(
fromEnterpriseId
,
toEnterpriseId
);
}
@Override
public
Integer
getStoreOwnerByStoreInfoId
(
Integer
enterpriseId
,
Integer
storeInfoId
)
{
return
this
.
tabStoreInfoMapper
.
getStoreOwnerByStoreInfoId
(
enterpriseId
,
storeInfoId
);
}
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreAuthorizationApiServiceImpl.java
View file @
eadf1cc3
...
...
@@ -156,6 +156,12 @@ public class StoreAuthorizationApiServiceImpl implements StoreAuthorizationApiSe
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
Void
>
cancelStoreAll
(
Integer
fromEnterpriseId
,
Integer
enterpriseId
)
{
this
.
storeService
.
cancelAuthStoreAll
(
fromEnterpriseId
,
enterpriseId
);
return
ServiceResponse
.
success
();
}
private
void
queryStoreByPage
(
Long
count
,
StoreSearchDTO
storeSearchDTO
,
Integer
toEnterpriseId
,
Integer
enterpriseId
,
String
key
){
if
(
StringUtils
.
isBlank
(
key
)){
key
=
ToolUtil
.
randomUUID
();
...
...
gic-store-service/src/main/resources/mapper/TabStoreMapper.xml
View file @
eadf1cc3
...
...
@@ -182,6 +182,10 @@
#{storeInfoId}
</foreach>
</update>
<update
id=
"cancelAuthStoreAll"
>
update tab_store set status=0 where enterprise_id=#{toEnterpriseId} and status=1
and from_enterprise_id = #{fromEnterpriseId}
</update>
<select
id=
"listStoreInfoIdByStoreIds"
resultType=
"java.lang.Integer"
>
select store_info_id
from tab_store where own_type = 0 and enterprise_id = #{enterpriseId}
...
...
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