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
3674d837
Commit
3674d837
authored
Apr 27, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
套餐价格不重新计算
parent
10a4dd09
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
+4
-4
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
View file @
3674d837
...
...
@@ -2731,7 +2731,7 @@ public class OrderSdkAdapter {
for
(
CreateOrderProductRequest
productRequest
:
products
)
{
// 普通商品 订单转换
productRequest
.
setOpid
(
index
);
originalAmount
+=
updateOrderItemAndSettlement
(
productRequest
,
orderItemList
,
orderSettlementCreateReqList
,
productRequest
,
partnerId
,
""
,
false
);
originalAmount
+=
update
MCCafe
OrderItemAndSettlement
(
productRequest
,
orderItemList
,
orderSettlementCreateReqList
,
productRequest
,
partnerId
,
""
,
false
);
// 如果是套餐商品,需要转换当前商品行子集ComboProduct&GroupProduct(固定商品、可选商品)
if
(
ObjectUtils
.
equals
(
ProductTypeEnum
.
SETMEAL_PRODUCT
.
getCode
(),
productRequest
.
getProductType
())
||
ObjectUtils
.
equals
(
ProductTypeEnum
.
SETMEAL_UPPRICE_PRODUCT
.
getCode
(),
productRequest
.
getProductType
()))
{
// 父类商品productId=productId+seq
...
...
@@ -2739,13 +2739,13 @@ public class OrderSdkAdapter {
if
(
CollectionUtils
.
isNotEmpty
(
productRequest
.
getComboProduct
()))
{
for
(
CreateOrderProductRequest
combo
:
productRequest
.
getComboProduct
())
{
combo
.
setOpid
(
comboIndex
);
updateOrderItemAndSettlement
(
productRequest
,
orderItemList
,
orderSettlementCreateReqList
,
combo
,
partnerId
,
parentProductId
,
false
);
update
MCCafe
OrderItemAndSettlement
(
productRequest
,
orderItemList
,
orderSettlementCreateReqList
,
combo
,
partnerId
,
parentProductId
,
false
);
if
(
CollectionUtils
.
isNotEmpty
(
combo
.
getMaterialProduct
()))
{
String
addProductId
=
combo
.
getProductId
()
+
"_"
+
comboIndex
;
for
(
CreateOrderProductRequest
material
:
combo
.
getMaterialProduct
())
{
material
.
setSpecification
(
material
.
getProductId
());
material
.
setSpecificationName
(
material
.
getProductName
());
updateOrderItemAndSettlement
(
productRequest
,
orderItemList
,
orderSettlementCreateReqList
,
material
,
partnerId
,
addProductId
,
true
);
update
MCCafe
OrderItemAndSettlement
(
productRequest
,
orderItemList
,
orderSettlementCreateReqList
,
material
,
partnerId
,
addProductId
,
true
);
}
}
comboIndex
++;
...
...
@@ -2757,7 +2757,7 @@ public class OrderSdkAdapter {
for
(
CreateOrderProductRequest
material:
productRequest
.
getMaterialProduct
()){
material
.
setSpecification
(
material
.
getProductId
());
material
.
setSpecificationName
(
material
.
getProductName
());
updateOrderItemAndSettlement
(
productRequest
,
orderItemList
,
orderSettlementCreateReqList
,
material
,
partnerId
,
addProductId
,
true
);
update
MCCafe
OrderItemAndSettlement
(
productRequest
,
orderItemList
,
orderSettlementCreateReqList
,
material
,
partnerId
,
addProductId
,
true
);
}
}
index
++;
...
...
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