|
@@ -163,6 +163,7 @@ namespace XYY.Service.Standard.ChannelApi.PSE
|
|
|
else
|
|
|
{
|
|
|
param = CreateCreateOrderParam(order, goods, channel, customerCode);
|
|
|
+ /**/
|
|
|
}
|
|
|
string json = JsonConvert.SerializeObject(param);
|
|
|
request.AddJsonBody(param);
|
|
@@ -473,7 +474,18 @@ namespace XYY.Service.Standard.ChannelApi.PSE
|
|
|
{
|
|
|
param.orderExtJson = "{\"poZipCode\":\"" + poZipCode + "\",\"partnerEvent\":\"H\"}";
|
|
|
}
|
|
|
-
|
|
|
+ /*部分线路增加一个SKU显示*/
|
|
|
+ if (channel.Id == 918)
|
|
|
+ {
|
|
|
+ param.orderDetails = orderGoods?.GroupBy(x => new { x.GoodsNumber, x.HsCode, x.CnName, x.EnName }).Select(x => new OrderDetailsItem
|
|
|
+ {
|
|
|
+ cnName = x.Key.CnName,
|
|
|
+ enName = x.Key.EnName,
|
|
|
+ quantity = x.Sum(y => y.Quantity),
|
|
|
+ hsCode = x.Key.HsCode,
|
|
|
+ singlePrice = x.Sum(y => y.Quantity * y.DeclareFee) / x.Sum(y => y.Quantity)
|
|
|
+ }).ToList();
|
|
|
+ }
|
|
|
|
|
|
return param;
|
|
|
}
|