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
41a0b377
Commit
41a0b377
authored
Dec 26, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 工单详情查询商品控制判断
parent
b38a516a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+16
-9
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
41a0b377
...
...
@@ -1015,7 +1015,8 @@ public class ChangeFlowBiz {
itemBasicInfoVO
.
setQcCategory
(
"/"
);
}
List
<
SimplePhyCateGoryResultCo
>
simplePhyCateGoryResultCos
=
categoryChain
.
get
(
itemId
);
log
.
debug
(
"[detail] simplePhyCateGoryResultCos:{}"
,
JSON
.
toJSONString
(
simplePhyCateGoryResultCos
));
log
.
debug
(
"[detail] itemId:{}, simplePhyCateGoryResultCos:{}"
,
itemId
,
JSON
.
toJSONString
(
simplePhyCateGoryResultCos
));
if
(
CollectionUtils
.
isEmpty
(
simplePhyCateGoryResultCos
))
{
itemBasicInfoVO
.
setPhyCategory
(
null
);
}
else
{
...
...
@@ -1028,17 +1029,23 @@ public class ChangeFlowBiz {
itemBasicInfoVO
.
setPhyCategory
(
categoryInfoVOS
);
}
Optional
<
SpuTO
>
optionalSpuTO
=
spuTOS
.
stream
().
filter
(
spu
->
spu
.
getId
()
==
itemId
).
findAny
();
log
.
debug
(
"[detail] itemId:{}, optionalSpuTO:{}"
,
itemId
,
JSON
.
toJSONString
(
optionalSpuTO
));
if
(!
optionalSpuTO
.
isPresent
())
{
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
THIRD_ERR
,
"未查询到商品详情"
);
itemBasicInfoVO
.
setItemSetupType
(
null
);
itemBasicInfoVO
.
setBusinessForm
(
null
);
itemBasicInfoVO
.
setStatus
(
null
);
}
else
{
SpuTO
spuTO
=
optionalSpuTO
.
get
();
Map
<
String
,
String
>
propertyMap
=
spuTO
.
getPropertyMap
();
itemBasicInfoVO
.
setItemSetupType
(
Integer
.
valueOf
(
propertyMap
.
get
(
"itemSetupType"
)));
String
businessForm
=
propertyMap
.
get
(
"businessForm"
);
int
business
=
StringUtils
.
isBlank
(
businessForm
)
?
0
:
Integer
.
parseInt
(
businessForm
);
itemBasicInfoVO
.
setBusinessForm
(
business
);
itemBasicInfoVO
.
setStatus
(
spuTO
.
getStatus
());
}
SpuTO
spuTO
=
optionalSpuTO
.
get
();
Map
<
String
,
String
>
propertyMap
=
spuTO
.
getPropertyMap
();
itemBasicInfoVO
.
setItemSetupType
(
Integer
.
valueOf
(
propertyMap
.
get
(
"itemSetupType"
)));
String
businessForm
=
propertyMap
.
get
(
"businessForm"
);
int
business
=
StringUtils
.
isBlank
(
businessForm
)
?
0
:
Integer
.
parseInt
(
businessForm
);
itemBasicInfoVO
.
setBusinessForm
(
business
);
itemBasicInfoVO
.
setStatus
(
spuTO
.
getStatus
());
ChangeGoodsPrincipalPO
changeGoodsPrincipalPO
=
longChangeGoodsPrincipalPOMap
.
get
(
itemId
);
log
.
debug
(
"[detail] itemId:{}, changeGoodsPrincipalPO:{}"
,
itemId
,
JSON
.
toJSONString
(
changeGoodsPrincipalPO
));
itemBasicInfoVO
.
setChangeGoodsPrincipal
(
changeGoodsPrincipalPO
);
return
itemBasicInfoVO
;
}).
collect
(
Collectors
.
toList
());
...
...
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