Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
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
yx-qc-change-flow
yanxuan-qc-change-system
Commits
fe4d017d
Commit
fe4d017d
authored
May 04, 2023
by
穆龙飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-2023050401' into 'master'
分支release-2023050401已上线,自动合并到master See merge request
!24
parents
0f3357e5
fe77d5e2
Pipeline
#69542
canceled with stages
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
SupplierItemServiceImpl.java
...xuan/change/biz/service/impl/SupplierItemServiceImpl.java
+4
-4
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/SupplierItemServiceImpl.java
View file @
fe4d017d
...
...
@@ -48,13 +48,13 @@ public class SupplierItemServiceImpl implements ISupplierItemService {
List
<
SupplierGoodsInfoRsp
>
data
=
listAjaxResponse
.
getData
();
List
<
SpuTO
>
spuTOList
=
new
ArrayList
<>();
if
(
data
!=
null
)
{
List
<
String
>
commonProps
=
new
ArrayList
<>();
commonProps
.
add
(
"sku"
);
commonProps
.
add
(
"skuSpec"
);
Set
<
Long
>
fullItemIds
=
data
.
stream
().
map
(
SupplierGoodsInfoRsp:
:
getItemId
).
collect
(
Collectors
.
toSet
());
log
.
debug
(
"[op:supplierGoodsInfoBySupplier] fullItemIds: {}"
,
fullItemIds
);
while
(
fullItemIds
.
size
()
>
200
)
{
List
<
Long
>
itemIds
=
new
ArrayList
<>(
fullItemIds
).
subList
(
0
,
200
);
List
<
String
>
commonProps
=
new
ArrayList
<>();
commonProps
.
add
(
"sku"
);
commonProps
.
add
(
"skuSpec"
);
AjaxResult
<
List
<
SpuTO
>>
listAjaxResult
=
itemRpcService
.
batchQuerySpuInfo
(
BatchQuerySpuInfoParam
.
builder
().
ids
(
itemIds
).
commonProps
(
commonProps
).
build
());
List
<
SpuTO
>
pageSpuTo
=
listAjaxResult
.
getData
();
...
...
@@ -65,7 +65,7 @@ public class SupplierItemServiceImpl implements ISupplierItemService {
}
List
<
Long
>
itemIds
=
new
ArrayList
<>(
fullItemIds
);
AjaxResult
<
List
<
SpuTO
>>
listAjaxResult
=
itemRpcService
.
batchQuerySpuInfo
(
BatchQuerySpuInfoParam
.
builder
().
ids
(
itemIds
).
build
());
.
batchQuerySpuInfo
(
BatchQuerySpuInfoParam
.
builder
().
ids
(
itemIds
).
commonProps
(
commonProps
).
build
());
List
<
SpuTO
>
pageSpuTo
=
listAjaxResult
.
getData
();
if
(!
CollectionUtils
.
isEmpty
(
pageSpuTo
))
{
spuTOList
.
addAll
(
pageSpuTo
);
...
...
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