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
6ca9d366
Commit
6ca9d366
authored
Oct 29, 2020
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加料再来一单
parent
c3f670e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
+10
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/mcoffee/ShoppingCartMCoffeeServiceImpl.java
View file @
6ca9d366
...
@@ -785,7 +785,10 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -785,7 +785,10 @@ public class ShoppingCartMCoffeeServiceImpl {
cartGoods
.
setQty
(
orderItem
.
getProductQuantity
());
cartGoods
.
setQty
(
orderItem
.
getProductQuantity
());
cartGoods
.
setSpuId
(
orderItem
.
getProductId
());
cartGoods
.
setSpuId
(
orderItem
.
getProductId
());
cartGoods
.
setSkuId
(
orderItem
.
getProductSpec
());
cartGoods
.
setSkuId
(
orderItem
.
getProductSpec
());
cartGoods
.
setOriginalPrice
(
orderItem
.
getProductPrice
().
longValue
());
cartGoods
.
setFinalPrice
(
orderItem
.
getProductPrice
().
longValue
());
cartGoods
.
setFinalPrice
(
orderItem
.
getProductPrice
().
longValue
());
cartGoods
.
setOriginalAmount
(
cartGoods
.
getOriginalPrice
()
*
cartGoods
.
getQty
());
cartGoods
.
setAmount
(
cartGoods
.
getFinalPrice
()
*
cartGoods
.
getQty
());
if
(
6
==
orderItem
.
getProductType
())
{
if
(
6
==
orderItem
.
getProductType
())
{
cartGoods
.
setGoodsType
(
com
.
freemud
.
sdk
.
api
.
assortment
.
shoppingcart
.
constant
.
GoodsTypeEnum
.
SET_MEAL_GOODS
.
getGoodsType
());
cartGoods
.
setGoodsType
(
com
.
freemud
.
sdk
.
api
.
assortment
.
shoppingcart
.
constant
.
GoodsTypeEnum
.
SET_MEAL_GOODS
.
getGoodsType
());
}
else
if
(
10
==
orderItem
.
getProductType
())
{
}
else
if
(
10
==
orderItem
.
getProductType
())
{
...
@@ -837,7 +840,9 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -837,7 +840,9 @@ public class ShoppingCartMCoffeeServiceImpl {
comboxGoods
.
setQty
(
orderItemResp
.
getProductQuantity
());
comboxGoods
.
setQty
(
orderItemResp
.
getProductQuantity
());
comboxGoods
.
setOriginalPrice
(
orderItemResp
.
getProductPrice
().
longValue
());
comboxGoods
.
setOriginalPrice
(
orderItemResp
.
getProductPrice
().
longValue
());
comboxGoods
.
setFinalPrice
(
orderItemResp
.
getSalePrice
().
longValue
());
comboxGoods
.
setFinalPrice
(
orderItemResp
.
getSalePrice
().
longValue
());
if
(!
""
.
equals
(
orderItemResp
.
getProductProperty
()))
{
comboxGoods
.
setOriginalAmount
(
comboxGoods
.
getOriginalPrice
()
*
comboxGoods
.
getQty
());
comboxGoods
.
setAmount
(
comboxGoods
.
getFinalPrice
()
*
comboxGoods
.
getQty
());
if
(
StringUtils
.
isNotBlank
(
orderItemResp
.
getProductProperty
()))
{
List
<
CartGoods
.
CartGoodsExtra
>
extra
=
new
ArrayList
<>();
List
<
CartGoods
.
CartGoodsExtra
>
extra
=
new
ArrayList
<>();
String
[]
split
=
orderItemResp
.
getProductProperty
().
split
(
"/"
);
String
[]
split
=
orderItemResp
.
getProductProperty
().
split
(
"/"
);
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
split
.
length
;
i
++)
{
...
@@ -870,6 +875,8 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -870,6 +875,8 @@ public class ShoppingCartMCoffeeServiceImpl {
materialGoods
.
setCustomerCode
(
orderItemResp
.
getThirdProductId
());
materialGoods
.
setCustomerCode
(
orderItemResp
.
getThirdProductId
());
materialGoods
.
setFinalPrice
(
orderItemResp
.
getSalePrice
().
longValue
());
materialGoods
.
setFinalPrice
(
orderItemResp
.
getSalePrice
().
longValue
());
materialGoods
.
setOriginalPrice
(
orderItemResp
.
getProductPrice
().
longValue
());
materialGoods
.
setOriginalPrice
(
orderItemResp
.
getProductPrice
().
longValue
());
materialGoods
.
setOriginalAmount
(
materialGoods
.
getOriginalPrice
());
materialGoods
.
setAmount
(
materialGoods
.
getFinalPrice
());
materialGoods
.
setSpuName
(
orderItemResp
.
getProductName
());
materialGoods
.
setSpuName
(
orderItemResp
.
getProductName
());
cartGoods
.
getProductMaterialList
().
add
(
materialGoods
);
cartGoods
.
getProductMaterialList
().
add
(
materialGoods
);
return
materialGoods
;
return
materialGoods
;
...
@@ -882,6 +889,8 @@ public class ShoppingCartMCoffeeServiceImpl {
...
@@ -882,6 +889,8 @@ public class ShoppingCartMCoffeeServiceImpl {
materialGoods
.
setCustomerCode
(
orderItemResp
.
getThirdProductId
());
materialGoods
.
setCustomerCode
(
orderItemResp
.
getThirdProductId
());
materialGoods
.
setFinalPrice
(
orderItemResp
.
getSalePrice
().
longValue
());
materialGoods
.
setFinalPrice
(
orderItemResp
.
getSalePrice
().
longValue
());
materialGoods
.
setOriginalPrice
(
orderItemResp
.
getProductPrice
().
longValue
());
materialGoods
.
setOriginalPrice
(
orderItemResp
.
getProductPrice
().
longValue
());
materialGoods
.
setOriginalAmount
(
materialGoods
.
getOriginalPrice
());
materialGoods
.
setAmount
(
materialGoods
.
getFinalPrice
());
materialGoods
.
setSpuName
(
orderItemResp
.
getProductName
());
materialGoods
.
setSpuName
(
orderItemResp
.
getProductName
());
comboGoods
.
getProductMaterialList
().
add
(
materialGoods
);
comboGoods
.
getProductMaterialList
().
add
(
materialGoods
);
return
materialGoods
;
return
materialGoods
;
...
...
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