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
88bc5a91
Commit
88bc5a91
authored
Aug 12, 2019
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加创建时间返回
parent
1f25a703
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
4 deletions
+49
-4
PlatformBrandRefDTO.java
...main/java/com/gic/enterprise/dto/PlatformBrandRefDTO.java
+37
-0
PlatformBrandApiServiceImpl.java
...enterprise/service/outer/PlatformBrandApiServiceImpl.java
+12
-4
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/PlatformBrandRefDTO.java
View file @
88bc5a91
...
...
@@ -35,7 +35,20 @@ public class PlatformBrandRefDTO implements Serializable {
private
Date
createTime
;
private
Date
updateTime
;
/**
* 商户名称
*/
private
String
enterpriseName
;
/**
* 公司名称
*/
private
String
companyName
;
/**
*
*/
private
String
logo
;
public
Integer
getPlatformBrandRefId
()
{
return
platformBrandRefId
;
}
...
...
@@ -99,4 +112,28 @@ public class PlatformBrandRefDTO implements Serializable {
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
String
getEnterpriseName
()
{
return
enterpriseName
;
}
public
void
setEnterpriseName
(
String
enterpriseName
)
{
this
.
enterpriseName
=
enterpriseName
;
}
public
String
getCompanyName
()
{
return
companyName
;
}
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
public
String
getLogo
()
{
return
logo
;
}
public
void
setLogo
(
String
logo
)
{
this
.
logo
=
logo
;
}
}
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/PlatformBrandApiServiceImpl.java
View file @
88bc5a91
...
...
@@ -10,13 +10,11 @@ import com.gic.enterprise.constant.Constants;
import
com.gic.enterprise.dto.DictDTO
;
import
com.gic.enterprise.dto.PlatformBrandDTO
;
import
com.gic.enterprise.dto.PlatformBrandRefDTO
;
import
com.gic.enterprise.entity.TabEnterprise
;
import
com.gic.enterprise.entity.TabPlatformBrand
;
import
com.gic.enterprise.entity.TabPlatformBrandRef
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.service.DictApiService
;
import
com.gic.enterprise.service.PlatformBrandApiService
;
import
com.gic.enterprise.service.PlatformBrandRefService
;
import
com.gic.enterprise.service.PlatformBrandService
;
import
com.gic.enterprise.service.*
;
import
com.github.pagehelper.PageHelper
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -40,6 +38,8 @@ public class PlatformBrandApiServiceImpl implements PlatformBrandApiService {
private
PlatformBrandRefService
platformBrandRefService
;
@Autowired
private
DictApiService
dictApiService
;
@Autowired
private
EnterpriseService
enterpriseService
;
@Override
public
ServiceResponse
<
Integer
>
saveBrandFromGic
(
String
categoryCode
,
String
platformBrandName
)
{
...
...
@@ -188,6 +188,14 @@ public class PlatformBrandApiServiceImpl implements PlatformBrandApiService {
TabPlatformBrand
brand
=
this
.
platformBrandService
.
getByBrandName
(
brandName
);
com
.
github
.
pagehelper
.
Page
<
TabPlatformBrandRef
>
brandRefPage
=
this
.
platformBrandRefService
.
listByPlatformBrandRef
(
brand
==
null
?
null
:
brand
.
getPlatformBrandId
());
Page
<
PlatformBrandRefDTO
>
page
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
brandRefPage
,
PlatformBrandRefDTO
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
page
.
getResult
()))
{
for
(
PlatformBrandRefDTO
ref
:
page
.
getResult
())
{
TabEnterprise
enterprise
=
enterpriseService
.
getEnterpriseById
(
ref
.
getEnterpriseId
());
ref
.
setEnterpriseName
(
enterprise
.
getEnterpriseName
());
ref
.
setCompanyName
(
enterprise
.
getCompanyName
());
ref
.
setLogo
(
enterprise
.
getLogo
());
}
}
return
ServiceResponse
.
success
(
page
);
}
...
...
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