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
703a67be
Commit
703a67be
authored
Oct 12, 2020
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
随单购月卡订单详情
parent
fd8f0f0c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletions
+22
-1
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
+1
-1
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+16
-0
order-application-service/src/main/java/cn/freemud/entities/vo/ProductVo.java
+5
-0
No files found.
assortment-ordercenter-sdk/src/main/java/com/freemud/sdk/api/assortment/order/adapter/OrderSdkAdapter.java
View file @
703a67be
...
...
@@ -421,7 +421,7 @@ public class OrderSdkAdapter {
* @return
*/
private
Integer
getCostType
(
QueryOrderAccountType
queryOrderAccountType
)
{
// 订单费用类型 1=包装费,2=运费,3=餐盒单价,4=餐盒数量,5=会员卡费用
// 订单费用类型 1=包装费,2=运费,3=餐盒单价,4=餐盒数量,5=会员卡费用
,10=麦咖啡月卡
Integer
type
=
0
;
String
code
=
queryOrderAccountType
.
getCode
();
...
...
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
703a67be
...
...
@@ -1171,6 +1171,18 @@ public class OrderAdapter {
//商品信息转换
convent2ProductVos
(
ordersBean
.
getProductList
(),
responseVo
);
responseVo
.
setOrderAccounts
(
convent2OrderAccountVo
(
ordersBean
.
getApportionDetails
()));
if
(
CollectionUtils
.
isNotEmpty
(
ordersBean
.
getOrderCostDetailList
()))
{
ordersBean
.
getOrderCostDetailList
().
forEach
(
o
->
{
if
(
o
.
getCostType
()
==
10
)
{
ProductVo
productVo
=
new
ProductVo
();
productVo
.
setName
(
o
.
getCostName
());
productVo
.
setSpuName
(
o
.
getCostName
());
productVo
.
setFinalPrice
(
o
.
getCostAmount
().
longValue
());
productVo
.
setOriginalPrice
(
o
.
getActualCostAmount
().
longValue
());
responseVo
.
getProducts
().
add
(
productVo
);
}
});
}
Long
promotionAmount
=
0L
;
Long
deliveryAmount
=
0L
;
Long
packageAmount
=
0L
;
...
...
@@ -1911,11 +1923,15 @@ public class OrderAdapter {
discountTotalAmount
=
discountTotalAmount
+
productDiscount
.
getDiscountAmount
()*
productDiscount
.
getDiscountQty
();
if
(
OrderAccountType
.
PRODUCT_COUPON
.
getCode
().
equals
(
productDiscount
.
getDiscountType
()))
{
hasProductCoupon
=
true
;
if
(
"啡常月享卡"
.
equals
(
productDiscount
.
getDiscountDesc
()))
{
productVo
.
setCouponName
(
productDiscount
.
getDiscountDesc
());
}
else
{
productVo
.
setName
(
productDiscount
.
getDiscountDesc
());
productVo
.
setSpuName
(
productDiscount
.
getDiscountDesc
());
productVo
.
setExtras
(
""
);
productVo
.
setSpecification
(
""
);
}
}
if
(
OrderAccountType
.
BUYM_SENDN
.
getCode
().
equals
(
productDiscount
.
getDiscountType
()))
{
activityType
=
ActivityTypeEnum
.
TYPE_61
.
getCode
();
}
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/ProductVo.java
View file @
703a67be
...
...
@@ -133,6 +133,11 @@ public class ProductVo {
private
String
unit
;
/**
* 优惠券名称
*/
private
String
couponName
;
/**
* 1.5.5版本添加
* 商品参与活动类型(61:买一赠一)
*/
...
...
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