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
胡园园
yanxuan-qc-change-system
Commits
9f1577f2
Commit
9f1577f2
authored
Dec 21, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify:负责人查询
parent
40deca85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
ChangeFlowExportCallback.java
...yanxuan/change/biz/callback/ChangeFlowExportCallback.java
+14
-10
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/callback/ChangeFlowExportCallback.java
View file @
9f1577f2
...
...
@@ -8,6 +8,7 @@ package com.netease.mail.yanxuan.change.biz.callback;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Optional
;
...
...
@@ -154,19 +155,22 @@ public class ChangeFlowExportCallback implements DesCallbackService {
}
}
log
.
info
(
"[getExportList] allItemList:{}"
,
allItemList
);
List
<
SpuTO
>
spuTOS
=
new
ArrayList
<>();
Map
<
Long
,
List
<
SimplePhyCateGoryResultCo
>>
categoryChain
=
new
HashMap
<>();
Map
<
Long
,
ChangeGoodsPrincipalPO
>
longChangeGoodsPrincipalPOMap
=
new
HashMap
<>();
if
(
CollectionUtils
.
isNotEmpty
(
allItemList
))
{
allItemList
=
allItemList
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
// 批量查询spu信息
spuTOS
=
itemService
.
batchQuerySpuInfo
(
BatchQuerySpuInfoParam
.
builder
().
ids
(
allItemList
)
.
commonProps
(
new
ArrayList
<>()).
spuProps
(
Arrays
.
asList
(
"itemSetupType"
,
"businessForm"
)).
build
());
// 批量查询物理类目
categoryChain
=
itemService
.
queryBySpuIds
(
CommonIdsParamQuery
.
builder
().
ids
(
allItemList
).
build
());
// 查询商品对应负责人信息
longChangeGoodsPrincipalPOMap
=
interiorChangeConfigService
.
queryGoodsPrincipalInfo
(
allItemList
);
log
.
debug
(
"[getExportList] spuTOS:{}"
,
spuTOS
.
size
());
}
// 批量查询spu信息
List
<
SpuTO
>
spuTOS
=
itemService
.
batchQuerySpuInfo
(
BatchQuerySpuInfoParam
.
builder
().
ids
(
allItemList
)
.
commonProps
(
new
ArrayList
<>()).
spuProps
(
Arrays
.
asList
(
"itemSetupType"
,
"businessForm"
)).
build
());
// 批量查询物理类目
Map
<
Long
,
List
<
SimplePhyCateGoryResultCo
>>
categoryChain
=
itemService
.
queryBySpuIds
(
CommonIdsParamQuery
.
builder
().
ids
(
allItemList
).
build
());
// 查询商品对应负责人信息
Map
<
Long
,
ChangeGoodsPrincipalPO
>
longChangeGoodsPrincipalPOMap
=
interiorChangeConfigService
.
queryGoodsPrincipalInfo
(
allItemList
);
log
.
debug
(
"[getExportList] spuTOS:{}"
,
spuTOS
.
size
());
List
<
ChangeFlowExcelDTO
>
changeFlowExcelDTOList
=
new
ArrayList
<>();
// 导出excel,按照商品/供应商和行动项,n*n重复拆分,例2个商品3个行动项,拆分成2*3=6行,其他属性一致
for
(
ChangeRecord
record
:
changeRecords
)
{
...
...
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