|
|
@ -1293,6 +1293,8 @@ namespace BBWY.Server.Business |
|
|
|
var itemList = new List<OrderCouponDetailGroupItemResponse>(); |
|
|
|
var couponDetailVoJToken = jtoken["jingdong_pop_order_coupondetail_responce"]["couponDetailExternal"]["couponDetailVo"]; |
|
|
|
var promotionTaskJArray = couponDetailVoJToken["promotionList"] as JArray; |
|
|
|
if (promotionTaskJArray != null) |
|
|
|
{ |
|
|
|
itemList.AddRange(promotionTaskJArray.Select(j => new OrderCouponDetailGroupItemResponse() |
|
|
|
{ |
|
|
|
Initiator = string.IsNullOrEmpty(j.Value<string>("promotionName")) ? "平台" : "商家", |
|
|
@ -1301,8 +1303,11 @@ namespace BBWY.Server.Business |
|
|
|
UndertakenByMerchantAmount = j.Value<decimal>("salePrice"), |
|
|
|
UndertakenByPlatformAmount = 0 |
|
|
|
})); |
|
|
|
} |
|
|
|
|
|
|
|
var couponJArray = couponDetailVoJToken["couponList"] as JArray; |
|
|
|
if (couponJArray != null) |
|
|
|
{ |
|
|
|
itemList.AddRange(couponJArray.Select(j => new OrderCouponDetailGroupItemResponse() |
|
|
|
{ |
|
|
|
Initiator = string.IsNullOrEmpty(j.Value<string>("couponName")) ? "平台" : "商家", |
|
|
@ -1313,6 +1318,7 @@ namespace BBWY.Server.Business |
|
|
|
j.Value<decimal>("couponPrice"), |
|
|
|
UndertakenByPlatformAmount = j.Value<decimal>("jdDivideMoney") |
|
|
|
})); |
|
|
|
} |
|
|
|
|
|
|
|
var groups = itemList.GroupBy(x => x.Initiator); |
|
|
|
|
|
|
|