重现步骤

[步骤]

[03:59:25]  -------------------------------------------------------------
CODE:N0359256
Error:11_-2_0_-2146232060
SQL:insert into [RB_OrderInfo_Log]([CustomerID],[OrderCode],[OrderLog],[AdminID],[AdminName],[AddTime]) values (@CustomerID,@OrderCode,@OrderLog,@AdminID,@AdminName,@AddTime) ;select @@IDENTITY
PARAMS:@CustomerID = 1 ,@OrderCode = 202201140539114561877 ,@OrderLog = 订单【202201140539114561877】执行转单号服务成功,物流API【三态】,包裹单号【33384914】,物流商单号【SFC3WW2144201140272】,跟踪号【UNIAS3049624070YQ】,版本【V3】 ,@AdminID = 0 ,@AdminName = 系统自动转单号服务 ,@AddTime = 2022-01-15 3:58:55 ,
MESSAGE:执行超时已过期。完成操作之前已超时或服务器未响应。 
The statement has been terminated.
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.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.ExecuteScalar()
   在 RB.DAL.DBOperator.GetSingle(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms, Boolean IsWriteDB)   在 RB.DAL.DBOperator.toCommonTipException(SqlException ex, String sql, SqlParameter[] cmdParms)
   在 RB.DAL.DBOperator.GetSingle(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms, Boolean IsWriteDB)
   在 RB.DAL.RB_OrderInfo_Log.Add(RB_OrderInfo_Log model)
   在 Biz.Irobotbox.Express.CallBackService.ExpressTurnCallBackService.Save(ExpressRequest parameter, RB_TempTransportRequest apiResult)
   在 Biz.Irobotbox.Express.CallBackService.ExpressTurnCallBackService.ExecuteForSystemService(ApiCallBackParameter parameter)
   在 RB.WebApi.ApiCode.API_Methods.TurnNo(TurnNoRequest turnNoRequest)
   在 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)

-------------------------------------------------------------
业务方法:在 RB.WebApi.ApiCode.API_Methods.TurnNo(TurnNoRequest turnNoRequest)

[结果]


[期望]


建议:这种操作可以用批量插入,而不是单条循环插入


历史记录  
  1. 2022-01-15 18:20:16, 由 莫昌财 创建。
  2. 2022-03-01 10:04:20, 由 刘灿 指派给 程伟。
    修改了 指派给,旧值为 "",新值为 "chengwei"。
  3. 2022-03-01 20:18:50, 由 胡晓龙 编辑。
    修改了 影响环境,旧值为 "trunk,",新值为 "577"。
  4. 2022-03-02 09:38:49, 由 程伟 确认Bug。
    修改了 Bug类型 ,旧值为 "",新值为 "performance"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
  5. 2022-03-02 09:39:54, 由 程伟 解决,方案为 性能问题 。
    修改了 解决方案,旧值为 "",新值为 "performance"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2022-03-02 09:39:06"。
    修改了 指派给 ,旧值为 "chengwei",新值为 "mochangcai"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 解决者 ,旧值为 "",新值为 "chengwei"。
    跟莫昌才沟通确认后,对业务改动很大,暂不优化
  6. 2024-10-15 11:05:20, 由 李乐同 编辑。
    修改了 开发责任人,旧值为 "",新值为 "chengwei"。
    修改了 测试责任人,旧值为 "",新值为 "chengwei"。
    修改了 解决时效 ,旧值为 "0",新值为 ""。
  7. 2024-10-15 11:05:23, 由 李乐同 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "mochangcai",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "liletong"。
    修改了 关闭日期,旧值为 "",新值为 "2024-10-15 11:05:23"。
所属项目 技术中心-需求池
所属模块 /
所属计划
所属迭代
Bug类型 性能问题
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人 程伟
测试责任人 程伟
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2024-10-15 11:05:23
截止日期 0000-00-00
上线时间 0000-00-00 00:00:00
上线时效 -1
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 莫昌财 于 2022-01-15 18:20:16
影响环境 577
由谁解决 程伟 于 2022-03-02 09:39:06
解决版本 主干
解决方案 性能问题
由谁关闭 李乐同 于 2024-10-15 11:05:23
最后修改 李乐同 于 2024-10-15 11:05:23
相关Bug