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
a1d05f46
Commit
a1d05f46
authored
Dec 01, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码结构调整
parent
79e3025b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
StoreWidgetApiServiceImpl.java
...c/store/service/outer/impl/StoreWidgetApiServiceImpl.java
+4
-2
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreWidgetApiServiceImpl.java
View file @
a1d05f46
...
...
@@ -17,7 +17,9 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
/**
*
...
...
@@ -160,7 +162,7 @@ public class StoreWidgetApiServiceImpl implements StoreWidgetApiService {
return
EnterpriseServiceResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
List
<
StoreDTO
>
list
=
serviceResponse
.
getResult
().
getResult
();
List
<
Integer
>
brandIdList
=
new
ArrayLis
t
<>();
Set
<
Integer
>
brandIdList
=
new
HashSe
t
<>();
List
<
StoreBrandDTO
>
brandList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
for
(
StoreDTO
storeDTO
:
list
)
{
...
...
@@ -168,7 +170,7 @@ public class StoreWidgetApiServiceImpl implements StoreWidgetApiService {
brandIdList
.
addAll
(
storeDTO
.
getStoreBrandIdList
());
}
}
List
<
TabStoreBrand
>
tabStoreBrands
=
storeBrandService
.
listStoreBrandByIds
(
brandIdList
);
List
<
TabStoreBrand
>
tabStoreBrands
=
storeBrandService
.
listStoreBrandByIds
(
new
ArrayList
<>(
brandIdList
)
);
brandList
=
EntityUtil
.
changeEntityListByJSON
(
StoreBrandDTO
.
class
,
tabStoreBrands
);
}
return
EnterpriseServiceResponse
.
success
(
brandList
);
...
...
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