重现步骤

[步骤]


[18:01:00]  -------------------------------------------------------------
CODE:N1801001
Error:11_-2_0_-2146232060
SQL:
SELECT 
ol.CustomerID,ol.SKU,SUM(ol.ProductNum+ol.ProductNumUpdate-ISNULL(popc.SingleNum,0)) NoSingleNum,oi.WareHouseID
FROM
dbo.RB_OrderInfo oi 
INNER JOIN RB_OrderInfo_BeikuExpand(nolock) oibe ON oibe.CustomerID = oi.CustomerID AND oibe.OrderCode=oi.OrderCode
    INNER JOIN RB_OrderSource(NOLOCK) os ON oi.CustomerID = os.CustomerID AND oi.OrderSourceID = os.ID
INNER JOIN dbo.RB_OrderList (NOLOCK) ol ON oi.CustomerID=ol.CustomerID AND oi.OrderCode=ol.OrderCode
LEFT JOIN dbo.RB_Procurement_Order_PositionCode (NOLOCK) popc ON ol.CustomerID=popc.CustomerID AND ol.OrderCode=popc.OrderCode AND ol.SKU=popc.SKU AND ol.ID = popc.OrderListID
WHERE oi.CustomerID=@CustomerID AND oi.OrderStatus=@OrderStatus AND oibe.RestockType=@RestockType AND os.OrderSourceType=@OrderSourceType
    AND ol.SKU IN (SELECT item AS SKU FROM dbo.CharSplitForIn(@skus,','))
GROUP BY ol.CustomerID,ol.SKU,oi.WareHouseID
PARAMS:@CustomerID = 1 ,@OrderStatus = 0 ,@RestockType = 2 ,@OrderSourceType = 20 ,@skus = 18787510,18787568,1881539,1881565,18827270,18932000,18932282,18932407,18946654,18996616,19007162,19007515,19009020,19009235,19013175,19013208,19129702,19129928,19130082,19168271,1918742,1918751,1925701,1925842,19291030,19291436,19291627,19291678,19291909,19292063 ,
MESSAGE:执行超时已过期。完成操作之前已超时或服务器未响应。 
TRACE:   在 System.Data.SqlClient.SqlConnection.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.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.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_Factory_InventoryExtendV2.GetNoSingleNumLst(Int32 customerId, List`1 skuLst)
   在 RB.DALExtendV2.RB_Factory_InventoryExtendV2.GetFactoryInventoryDataForBi(Int32 customerId, List`1 skus)
   在 RB.WebApi.ApiCode.API_Methods.GetFactoryInventoryData(GetFactoryInventoryDataRequest request)
   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   在 RB.WebApi.ApiCode.API_Entrance.ProcessRequest(HttpContext context)
   在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   在 System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
   在 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
   在 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
   在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   在 System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
   在 System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
   在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)


[结果]


[期望]

 dbo.RB_OrderInfo oi  所有的表补充完整的nolock


历史记录  
  1. 2024-12-16 18:15:28, 由 袁慧斌 创建。
  2. 2024-12-16 18:16:50, 由 李乐同 指派给 程伟。
    修改了 指派给,旧值为 "liletong",新值为 "chengwei"。
  3. 2024-12-16 18:19:05, 由 程伟 指派给 唐飞飞。
    修改了 指派给,旧值为 "chengwei",新值为 "tangfeifei"。
  4. 2024-12-17 10:36:34, 由 唐飞飞 指派给 谢业福。
    修改了 指派给,旧值为 "tangfeifei",新值为 "xieyefu"。
    代码我已经改了,你点一下解决吧
  5. 2024-12-17 10:38:30, 由 谢业福 解决,方案为 程序BUG 。
    修改了 解决方案,旧值为 "",新值为 "code"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2024-12-17 10:38:17"。
    修改了 指派给 ,旧值为 "xieyefu",新值为 "liuchao"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "xieyefu"。
  6. 2024-12-17 10:38:51, 由 谢业福 编辑。
    修改了 解决时效,旧值为 "0",新值为 ""。
    修改了 解决方案,旧值为 "code",新值为 "performance"。
  7. 2024-12-24 10:53:24, 由 刘超 编辑。
    修改了 测试责任人,旧值为 "",新值为 "liuchao"。
    修改了 解决时效 ,旧值为 "0",新值为 "16.38"。
    修改了 上线时效 ,旧值为 "-1",新值为 "17751210.26"。
  8. 2024-12-24 10:53:25, 由 刘超 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "liuchao",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "liuchao"。
    修改了 关闭日期,旧值为 "",新值为 "2024-12-24 10:53:25"。
所属项目 技术中心-需求池
所属模块 供应链   仓储物流   备库订单
所属计划
所属迭代
Bug类型
严重程度 一般
优先级 P1
Bug状态 已关闭
业务部门
影响功能
开发责任人 谢业福
测试责任人 刘超
解决时效 16.38
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2024-12-24 10:53:25
截止日期 0000-00-00
上线时间 0000-00-00 00:00:00
上线时效 17751200
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 袁慧斌 于 2024-12-16 18:15:27
影响环境 577
由谁解决 谢业福 于 2024-12-17 10:38:17
解决版本 主干
解决方案 性能问题
由谁关闭 刘超 于 2024-12-24 10:53:25
最后修改 刘超 于 2024-12-24 10:53:25
相关Bug