重现步骤

[步骤]



[16:33:21]  -------------------------------------------------------------
CODE:N16332123
Error:11_-2_0_-2146232060
SQL:-- 清理临时表
                                IF OBJECT_ID('Tempdb..#tb_warehouseid') IS NOT NULL
                                    DROP TABLE #tb_warehouseid;
                                IF OBJECT_ID('Tempdb..#tb_buyerid') IS NOT NULL
                                    DROP TABLE #tb_buyerid;
                                IF OBJECT_ID('Tempdb..#temp_single_list') IS NOT NULL
                                    DROP TABLE #temp_single_list;

                                create table #temp_single_list
                                (
                                ID int,
                                    WareHouseID int,
                                    BuyerID int,
                                    CustomerID int
                                )
                                CREATE TABLE #tb_warehouseid (WarehouseID INT PRIMARY KEY) -- 加主键/索引
                                INSERT INTO #tb_warehouseid
                                EXEC dbo.proc_string_split @WareHouseID,N','

                                CREATE TABLE #tb_buyerid (BuyerID INT PRIMARY KEY) -- 加主键/索引
                                INSERT INTO #tb_buyerid
                                EXEC dbo.proc_string_split @BuyerID,N','

                                declare @CurrentWhId int
                                declare cur cursor
                                for
                                SELECT WarehouseID FROM #tb_warehouseid
                                open cur
                                FETCH NEXT FROM cur INTO @CurrentWhId
                                WHILE (@@fetch_status = 0)
                                begin 
                                insert into #temp_single_list(ID,WarehouseID,BuyerID,CustomerID)
                                        select top 1 pds.ID AS ID,
                                         pl.WareHouseID,
                                         pds.BuyerID,
                                         pds.CustomerID 
                                     FROM RB_Procurement_Detail_SingleList pds WITH (NOLOCK)
                                     INNER JOIN RB_Procurement_List pl WITH (NOLOCK) 
                                         ON pds.CustomerID = pl.CustomerID 
                                         AND pds.P_Code = pl.P_Code
                                     WHERE 
                                         pds.CustomerID = @CustomerID
                                         AND pds.IsNewFlow = 1
                                         AND pds.IsAlibabaSingle = 1
                                         AND pds.StepState = 9
                                         AND pds.BuyerID IN (SELECT BuyerID FROM #tb_buyerid) AND (pl.IsSample = 0 OR pl.IsSample IS NULL)
                                         AND pl.WareHouseID=@CurrentWhId
                                order by pds.ID desc

                                FETCH NEXT FROM cur INTO @CurrentWhId
                                end
                                CLOSE cur
                                DEALLOCATE cur

                                SELECT 
                                    alis.Alibaba_Address,
                                    alis.Alibaba_AddressID,
                                    alis.AlibabaNickName,
                                    pll.WareHouseID,
                                    pll.BuyerID,
                                    alis.AlibabaID,
                                    pdsl.AddTime
                                FROM RB_Procurement_Detail_SingleList pdsl WITH (NOLOCK)
                                INNER JOIN #temp_single_list t 
                                    ON t.ID = pdsl.ID
                                INNER JOIN RB_Alibaba_SingleList alis WITH (NOLOCK) 
                                    ON pdsl.CustomerID = alis.CustomerID 
                                    AND pdsl.ID = alis.SingleID
                                INNER JOIN RB_Procurement_List pll WITH (NOLOCK) 
                                    ON pdsl.CustomerID = pll.CustomerID 
                                    AND pdsl.P_Code = pll.P_Code
                                WHERE pdsl.CustomerID = @CustomerID

PARAMS:@CustomerID = 1 ,@WareHouseID = 5312 ,@BuyerID = 1027 ,
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.DALExtend.RB_Alibaba_SingleListExtend.GetLastWareHouseSingleAddress(Int32 customerID, List`1 listWareHouseIDs, List`1 listBuyerID)
   在 PandaBuy.ERP.Web.IrobotBox.ProcurementV2.Procurement.ProcurementSingleAlibaba.InitData()
   在 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)
   在 System.Web.UI.Page.ProcessRequest()
   在 System.Web.UI.Page.ProcessRequest(HttpContext context)
   在 ASP.irobotbox_procurementv2_procurement_procurementsinglealibaba_aspx.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)


[结果]


[期望]

建议延长 超时时长,减少用户报错,提升体验
历史记录  
  1. 2026-05-09 18:03:36, 由 袁慧斌 创建。
  2. 2026-05-11 14:28:59, 由 李乐同 指派给 何建宝。
    修改了 指派给,旧值为 "liletong",新值为 "hejianbao"。
  3. 2026-05-11 16:46:04, 由 何建宝 解决,方案为 性能问题 。
    修改了 解决方案,旧值为 "",新值为 "performance"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2026-05-11 16:45:27"。
    修改了 指派给 ,旧值为 "hejianbao",新值为 "yuanhuibin"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "hejianbao"。
    已增加超时时间
  4. 2026-05-12 09:36:12, 由 袁慧斌 编辑。
    修改了 测试责任人,旧值为 "",新值为 "admin"。
    修改了 解决时效 ,旧值为 "0",新值为 "22.70"。
    修改了 截止日期 ,旧值为 "0000-00-00",新值为 "2026-05-11"。
  5. 2026-05-12 09:36:14, 由 袁慧斌 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "yuanhuibin",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "yuanhuibin"。
    修改了 关闭日期,旧值为 "",新值为 "2026-05-12 09:36:14"。
  6. 2026-05-19 09:19:24, 由 陈莉珍 编辑。
    修改了 测试责任人,旧值为 "admin",新值为 "hejianbao"。
    修改了 上线时间 ,旧值为 "2026-05-12 18:30:00",新值为 "2026-05-11 16:45:27"。
    修改了 上线时效 ,旧值为 "48.44",新值为 "22.70"。
所属项目 技术中心-需求池
所属模块 供应链   产品采购   采购
所属计划
所属迭代
Bug类型
严重程度 一般
优先级 P2
Bug状态 已关闭
业务部门 供应链管理中心
影响功能
开发责任人 何建宝
测试责任人 何建宝
解决时效 22.7
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2026-05-19 09:19:24
截止日期 2026-05-11
上线时间 2026-05-11 16:45:27
上线时效 22.7
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 袁慧斌 于 2026-05-09 18:03:33
影响环境 生产环境-业务反馈
由谁解决 何建宝 于 2026-05-11 16:45:27
解决版本 主干
解决方案 性能问题
由谁关闭 袁慧斌 于 2026-05-12 09:36:14
最后修改 陈莉珍 于 2026-05-19 09:19:24
相关Bug