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
f82f93f4
Commit
f82f93f4
authored
Feb 14, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品资源开关修改
parent
12dd9996
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
EnterpriseApiService.java
...java/com/gic/enterprise/service/EnterpriseApiService.java
+2
-0
EnterpriseApiServiceImpl.java
...terprise/service/outer/impl/EnterpriseApiServiceImpl.java
+13
-0
EnterpriseController.java
...om/gic/operation/web/controller/EnterpriseController.java
+5
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/EnterpriseApiService.java
View file @
f82f93f4
...
...
@@ -45,6 +45,8 @@ public interface EnterpriseApiService {
*/
ServiceResponse
<
Integer
>
editEnterprise
(
EnterpriseDTO
enterpriseDTO
);
ServiceResponse
<
String
>
editResourceSwitch
(
Integer
enterpriseId
,
String
resources
);
/**
* 修改商户信息
* @Title: editEnterpriseInfo
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/EnterpriseApiServiceImpl.java
View file @
f82f93f4
...
...
@@ -159,6 +159,19 @@ public class EnterpriseApiServiceImpl implements EnterpriseApiService {
}
@Override
public
ServiceResponse
<
String
>
editResourceSwitch
(
Integer
enterpriseId
,
String
resources
)
{
TabEnterprise
tabEnterprise
=
enterpriseService
.
getEnterpriseById
(
enterpriseId
);
if
(
tabEnterprise
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"商户ID错误,查询不到数据"
);
}
EnterpriseDTO
dto
=
new
EnterpriseDTO
();
dto
.
setEnterpriseId
(
enterpriseId
);
dto
.
setGoodsResource
(
Integer
.
parseInt
(
resources
));
enterpriseService
.
editEnterprise
(
dto
);
return
ServiceResponse
.
success
(
tabEnterprise
.
getEnterpriseName
());
}
@Override
public
ServiceResponse
<
Integer
>
editEnterpriseInfo
(
EnterpriseDTO
enterpriseDTO
)
{
TabEnterprise
tabEnterprise
=
enterpriseService
.
getEnterpriseById
(
enterpriseDTO
.
getEnterpriseId
());
if
(
tabEnterprise
==
null
)
{
...
...
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/EnterpriseController.java
View file @
f82f93f4
...
...
@@ -193,6 +193,11 @@ public class EnterpriseController {
return
ResultControllerUtils
.
commonResult
(
enterpriseApiService
.
editEnterprise
(
enterpriseDTO
));
}
@RequestMapping
(
"/edit-resource-switch"
)
public
RestResponse
editResourceSwitch
(
Integer
enterpriseId
,
String
resources
)
{
return
ResultControllerUtils
.
commonResult
(
enterpriseApiService
.
editResourceSwitch
(
enterpriseId
,
resources
));
}
@RequestMapping
(
"/modify-enterprise-logo"
)
public
RestResponse
modifyEnterpriseLogo
(
Integer
enterpriseId
,
String
logoUrl
)
{
return
ResultControllerUtils
.
commonResult
(
enterpriseApiService
.
modifyEnterpriseLogo
(
enterpriseId
,
logoUrl
));
...
...
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