CODE:N18350213
Error:11_-2_0_-2146232060
SQL:SELECT ol.ID,
p.SKU,
p.ClientSKU,
ol.SellerSKU,
ol.OrderItemId,
RTRIM(LTRIM(ol.SellerSKU)) + RTRIM(LTRIM(ol.OrderItemId)) + ISNULL(ol.GroupSKU, '') AS GroupID,
ol.ASIN,
p.ProductNameCN,
p.ImageUrl,
ol.ProductNum,
ol.PurchaseType,
ol.ProductNumUpdate,
ISNULL(ol.GroupSKU, '') AS GroupSKU,
ISNULL(ol.GroupProductNum, 0) AS GroupProductNum,
ISNULL(ol.GroupProductNumUpdate, 0) AS GroupProductNumUpdate,
( CASE
WHEN ISNULL(ol.GroupSKU, '') = '' THEN 1
ELSE ROW_NUMBER() OVER(partition BY ol.SellerSKU, ol.OrderItemId, ISNULL(ol.GroupSKU, '') ORDER BY ol.ID)
END ) AS RowID,
MIN(ol.PurchaseType) OVER(partition BY SellerSKU, OrderItemId, ISNULL(ol.groupsku, '')) AS GroupSKUPurchaseType,
ISNULL(ol.LockGroupProductNum, 0) AS LockGroupProductNum,
swh.WareHouseName SupplierWareHouseName,
wh.WareHouseName,
ol.ItemTitle,
ol.ItemTitleCn,
ol.ProductPrice,
ol.IP,
ol.ItemListingType,
ol.IsFBA
FROM RB_OrderList ol WITH(nolock)
LEFT JOIN RB_Product p WITH(nolock)
ON ol.CustomerID = p.CustomerID
AND ol.SKU = p.SKU
LEFT JOIN RB_WareHouse wh(nolock)
ON wh.CustomerID = p.CustomerID AND wh.ID = p.DefaultLocalWarehouse
LEFT JOIN RB_Product_SupplierPrice c (nolock)
ON c.CustomerID = p.CustomerID AND c.SKU = p.SKU AND c.IsDefault = 1
LEFT JOIN RB_Product_Supplier d(nolock)
ON c.CustomerID = d.CustomerID AND c.SupplierID = d.ID
LEFT JOIN RB_WareHouse swh(nolock)
ON swh.CustomerID = d.CustomerID AND swh.ID = d.TheWareHouseID
WHERE ol.CustomerID = @CustomerID
AND ol.OrderCode =@OrderCode
AND p.SKU != @SKU
ORDER BY groupid,
RowId ASC
PARAMS:@CustomerID = 1 ,@OrderCode = 202309071640151750386 ,@SKU = ,
MESSAGE:执行超时已过期。完成操作之前已超时或服务器未响应。
TRACE: 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TrySetMetaData(_SqlMetaDataSet metaData, Boolean moreInfo)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
在 RB.DAL.DBOperator.Query(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms, Boolean IsWriteDB) 在 RB.DAL.DBOperator.toCommonTipException(SqlException ex, String sql, SqlParameter[] cmdParms)
在 RB.DAL.DBOperator.Query(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms, Boolean IsWriteDB)
在 RB.DALExtendV2.RB_OrderListExtendV2.GetOrderItemEditList(Int32 customerId, String orderCode)
在 Biz.Irobotbox.Order.OrderInfoEditService.GetOrderEidtViewModel(Int32 customerId, String orderCode, Int32 isProductAddType, Int32 adminId)
在 PandaBuy.ERP.Web.IrobotBox.Order.ClientOrderInfoEdit.MapToViewModel(String orderCode)
在 PandaBuy.ERP.Web.IrobotBox.Order.ClientOrderInfoEdit.BindData()
在 PandaBuy.ERP.Web.IrobotBox.Order.ClientOrderInfoEdit.Page_Load(Object sender, EventArgs e)
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
&a
任务描述


1.查询效率很快
2.解决方案,指定参数化类型,延迟超时时间到60s