Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
e619417d
Commit
e619417d
authored
Oct 29, 2020
by
yu.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sunyu::update::fix bug about specialAttribute copyOrder
parent
bc7b879d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletions
+22
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+22
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
e619417d
...
@@ -718,7 +718,6 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -718,7 +718,6 @@ public class ShoppingCartMCoffeeServiceImpl {
if
(!
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
.
equals
(
storeCheckResponse
.
getCode
()))
{
if
(!
ResponseCodeConstant
.
RESPONSE_SUCCESS_STR
.
equals
(
storeCheckResponse
.
getCode
()))
{
shoppingCartGoodsResponseVo
.
setChanged
(
true
);
shoppingCartGoodsResponseVo
.
setChanged
(
true
);
shoppingCartGoodsResponseVo
.
setToastMsg
(
storeCheckResponse
.
getMessage
());
shoppingCartGoodsResponseVo
.
setToastMsg
(
storeCheckResponse
.
getMessage
());
// return storeCheckResponse;
}
}
List
<
CartGoods
>
cartGoodsList
=
getOrderGoods
(
orderInfo
.
getResult
());
List
<
CartGoods
>
cartGoodsList
=
getOrderGoods
(
orderInfo
.
getResult
());
...
@@ -819,6 +818,16 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -819,6 +818,16 @@ public class ShoppingCartMCoffeeServiceImpl {
getComboxGoods
(
cartGoods
,
combo
,
orderItemList
);
getComboxGoods
(
cartGoods
,
combo
,
orderItemList
);
});
});
}
}
//特制
if
(
StringUtils
.
isNotEmpty
(
orderItem
.
getExtInfo
())){
JSONObject
extJson
=
JSONObject
.
parseObject
(
orderItem
.
getExtInfo
());
CartGoods
.
SpecialExtra
specialExtra
=
new
CartGoods
.
SpecialExtra
();
specialExtra
.
setAttributeId
(
extJson
.
containsKey
(
"attributeId"
)
?
extJson
.
getString
(
"attributeId"
)
:
""
);
specialExtra
.
setAttributeName
(
extJson
.
containsKey
(
"attributeName"
)
?
extJson
.
getString
(
"attributeName"
)
:
""
);
specialExtra
.
setAttributeId
(
extJson
.
containsKey
(
"specialCode"
)
?
extJson
.
getString
(
"specialCode"
)
:
""
);
cartGoods
.
setSpecialExtra
(
Arrays
.
asList
(
specialExtra
));
}
if
(
ObjectUtils
.
equals
(
88
,
orderItem
.
getProductType
()))
{
if
(
ObjectUtils
.
equals
(
88
,
orderItem
.
getProductType
()))
{
// 获取套餐子商品列表
// 获取套餐子商品列表
cartGoods
.
setProductMaterialList
(
new
ArrayList
<>());
cartGoods
.
setProductMaterialList
(
new
ArrayList
<>());
...
@@ -852,6 +861,18 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -852,6 +861,18 @@ public class ShoppingCartMCoffeeServiceImpl {
}
}
comboxGoods
.
setExtra
(
extra
);
comboxGoods
.
setExtra
(
extra
);
}
}
for
(
OrderItemResp
itemResp
:
orderItemList
)
{
//特制
if
(
StringUtils
.
isNotEmpty
(
itemResp
.
getExtInfo
())){
JSONObject
extJson
=
JSONObject
.
parseObject
(
itemResp
.
getExtInfo
());
CartGoods
.
SpecialExtra
specialExtra
=
new
CartGoods
.
SpecialExtra
();
specialExtra
.
setAttributeId
(
extJson
.
containsKey
(
"attributeId"
)
?
extJson
.
getString
(
"attributeId"
)
:
""
);
specialExtra
.
setAttributeName
(
extJson
.
containsKey
(
"attributeName"
)
?
extJson
.
getString
(
"attributeName"
)
:
""
);
specialExtra
.
setAttributeId
(
extJson
.
containsKey
(
"specialCode"
)
?
extJson
.
getString
(
"specialCode"
)
:
""
);
comboxGoods
.
setSpecialExtra
(
Arrays
.
asList
(
specialExtra
));
}
}
Map
<
String
,
Object
>
map
=
JSONObject
.
parseObject
(
orderItemResp
.
getExtInfo
(),
Map
.
class
);
Map
<
String
,
Object
>
map
=
JSONObject
.
parseObject
(
orderItemResp
.
getExtInfo
(),
Map
.
class
);
if
(
map
.
containsKey
(
"isFixedProduct"
)
&&
(
boolean
)
map
.
get
(
"isFixedProduct"
))
{
if
(
map
.
containsKey
(
"isFixedProduct"
)
&&
(
boolean
)
map
.
get
(
"isFixedProduct"
))
{
cartGoods
.
getProductComboList
().
add
(
comboxGoods
);
cartGoods
.
getProductComboList
().
add
(
comboxGoods
);
...
...
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