Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
03d622f4
Commit
03d622f4
authored
Apr 15, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码
parent
e325b64f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
0 deletions
+25
-0
CustomStoreApiService.java
...ava/com/gic/enterprise/service/CustomStoreApiService.java
+2
-0
CustomStoreService.java
...n/java/com/gic/enterprise/service/CustomStoreService.java
+2
-0
CustomStoreServiceImpl.java
...m/gic/enterprise/service/impl/CustomStoreServiceImpl.java
+9
-0
CustomStoreApiServiceImpl.java
...erprise/service/outer/impl/CustomStoreApiServiceImpl.java
+6
-0
CustomStoreController.java
.../gic/enterprise/web/controller/CustomStoreController.java
+6
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/CustomStoreApiService.java
View file @
03d622f4
...
...
@@ -17,6 +17,8 @@ public interface CustomStoreApiService {
ServiceResponse
<
Integer
>
closeCustomStore
(
Integer
enterpriseId
,
String
appid
);
ServiceResponse
<
Integer
>
closeCustomStore
(
Integer
customStoreId
);
ServiceResponse
<
CustomStoreDTO
>
getCustomStore
(
Integer
enterpriseId
,
String
appid
);
ServiceResponse
<
Void
>
customSettingHasCommpleted
(
Integer
enterpriseId
);
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/CustomStoreService.java
View file @
03d622f4
...
...
@@ -16,5 +16,7 @@ public interface CustomStoreService {
int
openCustomStore
(
Integer
customStoreId
);
int
closeCustomStore
(
Integer
customStoreId
);
TabCustomStore
getCustomStore
(
Integer
enterpriseId
,
String
appid
);
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/CustomStoreServiceImpl.java
View file @
03d622f4
...
...
@@ -58,6 +58,15 @@ public class CustomStoreServiceImpl implements CustomStoreService {
}
@Override
public
int
closeCustomStore
(
Integer
customStoreId
)
{
TabCustomStore
store
=
new
TabCustomStore
();
store
.
setCustomStoreId
(
customStoreId
);
store
.
setStatus
(
2
);
return
this
.
tabCustomStoreMapper
.
updateByPrimaryKeySelective
(
store
);
}
@Override
public
TabCustomStore
getCustomStore
(
Integer
enterpriseId
,
String
appid
)
{
List
<
TabCustomStore
>
list
=
this
.
tabCustomStoreMapper
.
getCustomStore
(
enterpriseId
,
appid
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/CustomStoreApiServiceImpl.java
View file @
03d622f4
...
...
@@ -71,6 +71,12 @@ public class CustomStoreApiServiceImpl implements CustomStoreApiService {
}
@Override
public
ServiceResponse
<
Integer
>
closeCustomStore
(
Integer
customStoreId
)
{
int
i
=
this
.
customStoreService
.
closeCustomStore
(
customStoreId
);
return
ServiceResponse
.
success
(
i
);
}
@Override
public
ServiceResponse
<
CustomStoreDTO
>
getCustomStore
(
Integer
enterpriseId
,
String
appid
)
{
TabCustomStore
customStore
=
this
.
customStoreService
.
getCustomStore
(
enterpriseId
,
appid
);
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityByJSON
(
CustomStoreDTO
.
class
,
customStore
));
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomStoreController.java
View file @
03d622f4
...
...
@@ -91,4 +91,10 @@ public class CustomStoreController {
this
.
customStoreApiService
.
openCustomStore
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
appId
,
customStoreId
);
return
RestResponse
.
success
();
}
@RequestMapping
(
"close-custom-store"
)
public
RestResponse
updateCustomStoreStatus
(
Integer
customStoreId
){
this
.
customStoreApiService
.
closeCustomStore
(
customStoreId
);
return
RestResponse
.
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