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
2e249919
Commit
2e249919
authored
Jan 13, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商户logo修改接口添加
parent
f3ea8aaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
EnterpriseApiService.java
...java/com/gic/enterprise/service/EnterpriseApiService.java
+11
-0
EnterpriseApiServiceImpl.java
...terprise/service/outer/impl/EnterpriseApiServiceImpl.java
+13
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/service/EnterpriseApiService.java
View file @
2e249919
...
...
@@ -56,6 +56,17 @@ public interface EnterpriseApiService {
ServiceResponse
<
Integer
>
editEnterpriseInfo
(
EnterpriseDTO
enterpriseDTO
);
/**
* 修改商户logo
* @Title: modifyEnterpriseLogo
* @Description:
* @author guojuxing
* @param enterpriseId 商户ID
* @param logoUrl logo的图片地址
* @return com.gic.api.base.commons.ServiceResponse<java.lang.String>
*/
ServiceResponse
<
String
>
modifyEnterpriseLogo
(
Integer
enterpriseId
,
String
logoUrl
);
/**
* 查询单条数据
* @Title: getEnterpriseById
* @Description:
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/EnterpriseApiServiceImpl.java
View file @
2e249919
...
...
@@ -176,6 +176,19 @@ public class EnterpriseApiServiceImpl implements EnterpriseApiService {
}
@Override
public
ServiceResponse
<
String
>
modifyEnterpriseLogo
(
Integer
enterpriseId
,
String
logoUrl
)
{
TabEnterprise
tabEnterprise
=
enterpriseService
.
getEnterpriseById
(
enterpriseId
);
if
(
tabEnterprise
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"企业ID错误,查询不到数据"
);
}
EnterpriseDTO
enterpriseDTO
=
new
EnterpriseDTO
();
enterpriseDTO
.
setEnterpriseId
(
enterpriseId
);
enterpriseDTO
.
setLogo
(
logoUrl
);
enterpriseService
.
editEnterprise
(
enterpriseDTO
);
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
EnterpriseDTO
>
getEnterpriseById
(
Integer
enterpriseId
)
{
TabEnterprise
tabEnterprise
=
enterpriseService
.
getEnterpriseById
(
enterpriseId
);
if
(
tabEnterprise
==
null
)
{
...
...
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