Browse Source

调整订单同步,订单合计信息应付=0时不保存拆分明细,同时不产生京仓云仓的采购成本

pjzs_starttask_update
shanji 2 years ago
parent
commit
e0dc74ecf7
  1. 17
      BBWY.Server.Business/Sync/OrderSyncBusiness.cs

17
BBWY.Server.Business/Sync/OrderSyncBusiness.cs

@ -306,7 +306,8 @@ namespace BBWY.Server.Business
if (orderCouponDetailResponse.Success)
{
var jtoken = orderCouponDetailResponse.Data["jingdong_pop_order_queryCouponDetai_responce"]["couponDetailExternal"]["couponDetailVo"];
if (jtoken.Value<decimal>("totalShouldPay") > 0M)
{
#region 订单合计信息
var orderTotal = new OrderTotalInfo()
{
@ -449,7 +450,7 @@ namespace BBWY.Server.Business
}
}
#endregion
}
}
}
}
@ -725,6 +726,17 @@ namespace BBWY.Server.Business
orderState != null &&
orderState != Enums.OrderState. &&
orderState != Enums.OrderState.)
{
bool checkOrderTotal = true;
if (dbOrder.StorageType == Enums.StorageType. || dbOrder.StorageType == Enums.StorageType.)
{
var orderTotalInfo = insertOrderTotalInfoList.FirstOrDefault(x => x.Id == dbOrder.Id);
if (orderTotalInfo == null)
orderTotalInfo = dbOrderTotalList.FirstOrDefault(x => x.Id == dbOrder.Id);
if (orderTotalInfo == null || orderTotalInfo.TotalShouldPay == 0M)
checkOrderTotal = false;
}
if (checkOrderTotal)
{
var orderCost = dbOrderCostList.FirstOrDefault(oc => oc.OrderId == dbOrder.Id);
if (orderCost == null && orderSellerPrice > 0M)
@ -923,6 +935,7 @@ namespace BBWY.Server.Business
}
}
}
}
#endregion
#region 检查订单信息是否变化

Loading…
Cancel
Save