|
|
@ -268,14 +268,14 @@ namespace BBWYB.Server.Business |
|
|
|
if (dbOrder.IntoStoreType == Enums.IntoStoreType.发回齐越) |
|
|
|
notifyQikuPackSchemeParamList = new List<QiKuPackTaskSkuPurchaseSchemeIdRequest>(); |
|
|
|
|
|
|
|
#region 待更新
|
|
|
|
IList<long> updateOrderCostDetailIdList = fsql.Select<OrderCostDetail>() |
|
|
|
.Where(ocd => ocd.OrderId == request.OrderId && ocd.IsEnabled == true) |
|
|
|
.ToList(ocd => ocd.Id); |
|
|
|
IList<long> updatePurchaseOrderIdList = fsql.Select<OrderPurchaseInfo>() |
|
|
|
.Where(opi => opi.OrderId == request.OrderId && opi.IsEnabled == true) |
|
|
|
.ToList(opi => opi.Id); |
|
|
|
#endregion
|
|
|
|
//#region 待更新
|
|
|
|
//IList<long> updateOrderCostDetailIdList = fsql.Select<OrderCostDetail>()
|
|
|
|
// .Where(ocd => ocd.OrderId == request.OrderId && ocd.IsEnabled == true)
|
|
|
|
// .ToList(ocd => ocd.Id);
|
|
|
|
//IList<long> updatePurchaseOrderIdList = fsql.Select<OrderPurchaseInfo>()
|
|
|
|
// .Where(opi => opi.OrderId == request.OrderId && opi.IsEnabled == true)
|
|
|
|
// .ToList(opi => opi.Id);
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
IInsert<OrderCost> insertOrderCost = null; |
|
|
|
IUpdate<OrderCost> updateOrderCost = null; |
|
|
@ -513,10 +513,10 @@ namespace BBWYB.Server.Business |
|
|
|
|
|
|
|
fsql.Transaction(() => |
|
|
|
{ |
|
|
|
if (updatePurchaseOrderIdList.Count() > 0) |
|
|
|
fsql.Update<OrderPurchaseInfo>(updatePurchaseOrderIdList).Set(opi => opi.IsEnabled, false).ExecuteAffrows(); |
|
|
|
if (updateOrderCostDetailIdList.Count() > 0) |
|
|
|
fsql.Update<OrderCostDetail>(updateOrderCostDetailIdList).Set(ocd => ocd.IsEnabled, false).ExecuteAffrows(); |
|
|
|
//if (updatePurchaseOrderIdList.Count() > 0)
|
|
|
|
// fsql.Update<OrderPurchaseInfo>(updatePurchaseOrderIdList).Set(opi => opi.IsEnabled, false).ExecuteAffrows();
|
|
|
|
//if (updateOrderCostDetailIdList.Count() > 0)
|
|
|
|
// fsql.Update<OrderCostDetail>(updateOrderCostDetailIdList).Set(ocd => ocd.IsEnabled, false).ExecuteAffrows();
|
|
|
|
if (updatePurchaseTimeLimitTaskOrderSkuList.Count() > 0) |
|
|
|
{ |
|
|
|
fsql.Update<TimeLimitTask>().Set(t => t.CompletionTime, DateTime.Now) |
|
|
|