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
b38a516a
Commit
b38a516a
authored
Dec 26, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 物理类目为空处理
parent
c3247272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+11
-9
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
b38a516a
...
...
@@ -1013,18 +1013,20 @@ public class ChangeFlowBiz {
itemBasicInfoVO
.
setQcCategory
(
collect
);
}
else
{
itemBasicInfoVO
.
setQcCategory
(
"/"
);
}
}
List
<
SimplePhyCateGoryResultCo
>
simplePhyCateGoryResultCos
=
categoryChain
.
get
(
itemId
);
log
.
debug
(
"[detail] simplePhyCateGoryResultCos:{}"
,
JSON
.
toJSONString
(
simplePhyCateGoryResultCos
));
if
(
CollectionUtils
.
isEmpty
(
simplePhyCateGoryResultCos
))
{
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
THIRD_ERR
,
"未查询到物理类目"
);
itemBasicInfoVO
.
setPhyCategory
(
null
);
}
else
{
List
<
CategoryInfoVO
>
categoryInfoVOS
=
simplePhyCateGoryResultCos
.
stream
().
map
(
phy
->
{
CategoryInfoVO
categoryInfoVO
=
new
CategoryInfoVO
();
categoryInfoVO
.
setId
(
phy
.
getId
());
categoryInfoVO
.
setName
(
phy
.
getName
());
return
categoryInfoVO
;
}).
collect
(
Collectors
.
toList
());
itemBasicInfoVO
.
setPhyCategory
(
categoryInfoVOS
);
}
List
<
CategoryInfoVO
>
categoryInfoVOS
=
simplePhyCateGoryResultCos
.
stream
().
map
(
phy
->
{
CategoryInfoVO
categoryInfoVO
=
new
CategoryInfoVO
();
categoryInfoVO
.
setId
(
phy
.
getId
());
categoryInfoVO
.
setName
(
phy
.
getName
());
return
categoryInfoVO
;
}).
collect
(
Collectors
.
toList
());
itemBasicInfoVO
.
setPhyCategory
(
categoryInfoVOS
);
Optional
<
SpuTO
>
optionalSpuTO
=
spuTOS
.
stream
().
filter
(
spu
->
spu
.
getId
()
==
itemId
).
findAny
();
if
(!
optionalSpuTO
.
isPresent
())
{
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
THIRD_ERR
,
"未查询到商品详情"
);
...
...
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