重现步骤

[步骤]



[04:02:52]  -------------------------------------------------------------
CODE:N04025213
Error:11_-2_0_-2146232060
SQL:UPDATE a
                            SET a.FirstLegShippingType = @FirstLegShippingType,
                                UpdateTime = @UpdateTime
                            FROM RB_Product_OrderSourceSKU (NOLOCK) a
                                INNER JOIN @OrderSourceSKU ordersku
                                    ON a.OrderSourceSKU = ordersku.Id
                            WHERE CustomerID = @CustomerID
                                  AND a.OrderSourceID = @OrderSourceID; 
PARAMS:@CustomerID = 1 ,@OrderSourceSKU = 8NZ16T33HO59IGN, ,@OrderSourceID = 19247 ,@FirstLegShippingType = 1 ,@UpdateTime = 2024/8/22 4:02:22 ,
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.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.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   在 System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   在 RB.DAL.DBOperator.ExecuteSql(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms)   在 RB.DAL.DBOperator.toCommonTipException(SqlException ex, String sql, SqlParameter[] cmdParms)
   在 RB.DAL.DBOperator.ExecuteSql(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms)
   在 RB.DALExtendV3.Generate.Product.RB_Product_OrderSourceSKUExtendV3.BatchUpdateProductOrderSourceSKUFirstLegShippingType(Int32 customerId, Int32 orderSourceID, List`1 osSkuList, Int32 firstLegShippingType, DateTime updateTime)
   在 Biz.Amazon.FBA.AmazonFbaHeaderTransportMapService.<>c__DisplayClass4_30.<FbaHeaderTransportYearSaleMappingExecute>b__132()
   在 Biz.Amazon.FBA.AmazonFbaHeaderTransportMapService.ExcuteWithRetry(Action action, Int32 retryCount)
   在 Biz.Amazon.FBA.AmazonFbaHeaderTransportMapService.FbaHeaderTransportYearSaleMappingExecute(FbaHeaderTransportMapping model)
   在 RB.Utility.TaskSmartManager`1.execute(Func`2 execFunction)
   在 System.Threading.Tasks.Task.Execute()
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()

-------------------------------------------------------------



[04:03:06]  -------------------------------------------------------------
CODE:N04030614
Error:11_-2_0_-2146232060
SQL:UPDATE a
                            SET a.FirstLegShippingType = @FirstLegShippingType,
                                UpdateTime = @UpdateTime
                            FROM RB_Product_OrderSourceSKU (NOLOCK) a
                                INNER JOIN @OrderSourceSKU ordersku
                                    ON a.OrderSourceSKU = ordersku.Id
                            WHERE CustomerID = @CustomerID
                                  AND a.OrderSourceID = @OrderSourceID; 
PARAMS:@CustomerID = 1 ,@OrderSourceSKU = HSV215611NU,EV56FBM12015AA9WY, ,@OrderSourceID = 19237 ,@FirstLegShippingType = 1 ,@UpdateTime = 2024/8/22 4:02:36 ,
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.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.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   在 System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   在 RB.DAL.DBOperator.ExecuteSql(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms)   在 RB.DAL.DBOperator.toCommonTipException(SqlException ex, String sql, SqlParameter[] cmdParms)
   在 RB.DAL.DBOperator.ExecuteSql(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms)
   在 RB.DALExtendV3.Generate.Product.RB_Product_OrderSourceSKUExtendV3.BatchUpdateProductOrderSourceSKUFirstLegShippingType(Int32 customerId, Int32 orderSourceID, List`1 osSkuList, Int32 firstLegShippingType, DateTime updateTime)
   在 Biz.Amazon.FBA.AmazonFbaHeaderTransportMapService.<>c__DisplayClass4_30.<FbaHeaderTransportYearSaleMappingExecute>b__132()
   在 Biz.Amazon.FBA.AmazonFbaHeaderTransportMapService.ExcuteWithRetry(Action action, Int32 retryCount)
   在 Biz.Amazon.FBA.AmazonFbaHeaderTransportMapService.FbaHeaderTransportYearSaleMappingExecute(FbaHeaderTransportMapping model)
   在 RB.Utility.TaskSmartManager`1.execute(Func`2 execFunction)
   在 System.Threading.Tasks.Task.Execute()
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()

-------------------------------------------------------------
@OrderSourceSKU ordersku
                                    ON a.OrderSourceSKU = ordersku.Id  的类型 和数据库类型不一致 nvarchar 应采用  Tb_NStringIds 

[结果]


[期望]

保证一直的参数类型 


历史记录  
  1. 2024-08-22 09:36:14, 由 袁慧斌 创建。
  2. 2024-08-22 10:17:36, 由 李乐同 指派给 程伟。
    修改了 指派给,旧值为 "liletong",新值为 "chengwei"。
  3. 2024-08-22 10:39:57, 由 程伟 编辑。
    修改了 解决时效,旧值为 "0",新值为 "-1"。



  4. 2024-08-22 10:40:07, 由 程伟 指派给 冯名明。
    修改了 指派给,旧值为 "chengwei",新值为 "fengmingming"。
  5. 2024-08-22 17:19:36, 由 冯名明 解决,方案为 性能问题 。
    修改了 解决方案,旧值为 "",新值为 "performance"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2024-08-22 17:18:42"。
    修改了 指派给 ,旧值为 "fengmingming",新值为 "guanyilin"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "fengmingming"。

    已更改参数类型为:Tb_NStringIds 

  6. 2024-08-22 17:31:06, 由 关依林 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "guanyilin",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "guanyilin"。
    修改了 关闭日期,旧值为 "",新值为 "2024-08-22 17:31:06"。
    下周二发版
所属项目 技术中心-需求池
所属模块 系统运维   性能优化
所属计划
所属迭代
Bug类型
严重程度 一般
优先级 P1
Bug状态 已关闭
业务部门
影响功能
开发责任人 冯名明
测试责任人
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2024-08-22 17:31:06
截止日期 0000-00-00
上线时间 0000-00-00 00:00:00
上线时效 -1
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 袁慧斌 于 2024-08-22 09:36:14
影响环境 577
由谁解决 冯名明 于 2024-08-22 17:18:42
解决版本 主干
解决方案 性能问题
由谁关闭 关依林 于 2024-08-22 17:31:06
最后修改 关依林 于 2024-08-22 17:31:06
相关Bug