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
e961f19d
Commit
e961f19d
authored
Mar 06, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/base_platform_enterprise/gic-store
into developer
parents
d7caa483
5a814681
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
0 deletions
+35
-0
StoreApiService.java
.../src/main/java/com/gic/store/service/StoreApiService.java
+11
-0
TabStoreMapper.java
...rc/main/java/com/gic/store/dao/mapper/TabStoreMapper.java
+3
-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
+6
-0
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+6
-0
TabStoreMapper.xml
...tore-service/src/main/resources/mapper/TabStoreMapper.xml
+7
-0
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreApiService.java
View file @
e961f19d
...
...
@@ -320,4 +320,15 @@ public interface StoreApiService {
* @throws
*/
ServiceResponse
<
Integer
>
getStoreIdByStoreNameAndStoreCodeAndRegionId
(
String
storeCode
,
Integer
regionId
,
Integer
enterpriseId
);
/**
* 查看商户下是否存在门店
* @Title: checkExistStore
* @Description:
* @author zhiwj
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Boolean>
* @throws
*/
ServiceResponse
<
Boolean
>
checkExistStore
(
Integer
enterpriseId
);
}
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabStoreMapper.java
View file @
e961f19d
...
...
@@ -75,4 +75,6 @@ public interface TabStoreMapper {
List
<
String
>
listAllCityId
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
,
@Param
(
"storeBrandId"
)
Integer
storeBrandId
);
Integer
checkExistStore
(
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/StoreService.java
View file @
e961f19d
...
...
@@ -128,4 +128,6 @@ public interface StoreService {
void
updateStore
(
StoreDTO
storeDTO
);
TabStore
getByStoreCodeAndRegionId
(
Integer
enterpriseId
,
Integer
regionId
,
String
storeCode
);
Boolean
checkExistStore
(
Integer
enterpriseId
);
}
gic-store-service/src/main/java/com/gic/store/service/impl/StoreServiceImpl.java
View file @
e961f19d
...
...
@@ -505,4 +505,10 @@ public class StoreServiceImpl implements StoreService {
return
null
;
}
@Override
public
Boolean
checkExistStore
(
Integer
enterpriseId
)
{
Integer
line
=
this
.
tabStoreMapper
.
checkExistStore
(
enterpriseId
);
return
line
!=
null
;
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
e961f19d
...
...
@@ -787,6 +787,12 @@ public class StoreApiServiceImpl implements StoreApiService {
}
@Override
public
ServiceResponse
<
Boolean
>
checkExistStore
(
Integer
enterpriseId
)
{
Boolean
exist
=
this
.
storeService
.
checkExistStore
(
enterpriseId
);
return
EnterpriseServiceResponse
.
success
(
exist
);
}
@Override
public
ServiceResponse
<
StoreDTO
>
getStoreById
(
Integer
enterpriseId
,
Integer
storeId
)
{
String
key
=
Constants
.
STORE_KEY
+
enterpriseId
+
":"
+
storeId
;
...
...
gic-store-service/src/main/resources/mapper/TabStoreMapper.xml
View file @
e961f19d
...
...
@@ -232,4 +232,10 @@
group by city_id
ORDER BY count(1) desc
</select>
<select
id=
"checkExistStore"
resultType=
"int"
>
select
1
from tab_store
where enterprise_id = #{enterpriseId} and own_type = 0 limit 1
</select>
</mapper>
\ No newline at end of file
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