重现步骤

[步骤]



[11:45:36]  -------------------------------------------------------------
CODE:N11453610
Error:21_596_1_-2146232060
SQL:UPDATE alias
                            SET alias.TotalPrice = T.ProductTotalPrice, alias.ProductTotalPrice = T.ProductTotalPrice,alias.UpdateTime = GETDATE()
                            FROM RB_OrderInfo alias 
                            INNER JOIN 
                            (
                                SELECT o.OrderCode,SUM(O.ProductTotalCount * C.SupplyPrice) ProductTotalPrice FROM 
                            (
                            SELECT H.OrderSourceID,H.OrderCode, (L.ProductNum + L.ProductNumUpdate) ProductTotalCount,
                            CASE 
                            WHEN CHARINDEX('"sku_id":"', L.ExtendedInfo) > 0 THEN 
                            SUBSTRING(
                            L.ExtendedInfo, 
                            CHARINDEX('"sku_id":"', L.ExtendedInfo) + LEN('"sku_id":"'), 
                            CHARINDEX('"', L.ExtendedInfo, CHARINDEX('"sku_id":"', L.ExtendedInfo) + LEN('"sku_id":"')) 
                            - (CHARINDEX('"sku_id":"', L.ExtendedInfo) + LEN('"sku_id":"'))
                            ) 
                            ELSE 
                            NULL 
                            END AS SkuId FROM dbo.RB_OrderInfo H WITH(NOLOCK)
                            INNER JOIN dbo.RB_OrderSource OS WITH(NOLOCK) ON H.OrderSourceID = OS.ID
                            INNER JOIN dbo.RB_OrderList L WITH(NOLOCK) ON H.OrderCode = L.OrderCode
                            INNER JOIN @tb_OrderIds oi ON H.OrderCode = oi.Id
                            WHERE H.CustomerID = @CustomerID AND H.AliExpressTrusteeType = @AliExpressTrusteeType
                            --GROUP BY H.OrderCode
                            ) O
                                INNER JOIN RB_AliExpress_SkuEstimatedPrice C WITH(NOLOCK) ON O.OrderSourceID = C.OrderSourceID AND O.SkuId = c.SkuId
                            GROUP BY o.OrderCode
                            ) T ON alias.OrderCode = T.OrderCode 
PARAMS:@CustomerID = 1 ,@AliExpressTrusteeType = 1 ,@tb_OrderIds = 202405020108172070844, ,
MESSAGE:Cannot continue the execution because the session is in the kill state.
当前命令发生了严重错误。应放弃任何可能产生的结果。
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.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.RB_OrderInfoExtendV3.SetOrderInfoEstimateTotalPrice(List`1 orderIDs, Int32 customerId, Int32 aliExpressTrusteeType)
   在 Biz.Irobotbox.OrderProfits.AliExpressAccountFeeBuilder.<>c__DisplayClass11_0.<UpdateBuildFeeSucessed>b__6(IEnumerable`1 page)
   在 System.Linq.IEnumableExtensions.PagingProcess[TSource](IEnumerable`1 source, Action`1 pageAction, Int32 pageSize)
   在 Biz.Irobotbox.OrderProfits.AliExpressAccountFeeBuilder.UpdateBuildFeeSucessed(IEnumerable`1 successList)
   在 Biz.Irobotbox.OrderProfits.OrderProfitsService.ExecuteCalcOrderProfitV2(List`1 orderInfoIds, List`1 operateTypes)
   在 Biz.Irobotbox.OrderProfits.OrderProfitsService.ExecuteCalcOrders(List`1 orderInfoIdList, List`1 customerIds, List`1 orderCodes, List`1 operateTypes)
   在 Biz.Irobotbox.OrderProfits.OrderProfitsService.CalcOrders(List`1 customerIds, List`1 orderCodes, List`1 operateTypes)
   在 Biz.Irobotbox.Order.OrderReturnService.CancelOrder(Int32 packageId, Int32 customerId, String ordercode, String username, Int32 userid)
   在 Biz.Irobotbox.Order.OrderReturnService.ReturnOrder(List`1 orderParams, Int32 userid, String username, Int32 customerId)
   在 PandaBuy.ERP.Web.IrobotBox.Order.Return.AddReturn.<>c__DisplayClass18_0.<Save>b__22()
   在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   在 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.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Threading.ThreadHelper.ThreadStart()

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


[结果]


[期望]

  改善 查询 相关SQL ,并优化提升效率,加快速度 减少损耗


历史记录  
  1. 2024-05-28 11:49:03, 由 袁慧斌 创建。
  2. 2024-05-28 11:52:24, 由 李乐同 指派给 程伟。
    修改了 指派给,旧值为 "liletong",新值为 "chengwei"。
  3. 2024-05-28 11:59:53, 由 程伟 指派给 唐飞飞。
    修改了 指派给,旧值为 "chengwei",新值为 "tangfeifei"。
    帮忙看下是哪位开发同事的,直接指派给他
  4. 2024-05-28 13:44:16, 由 唐飞飞 指派给 谭颖。
    修改了 指派给,旧值为 "tangfeifei",新值为 "tanying"。
  5. 2024-05-29 16:49:54, 由 曾倩 编辑。
    修改了 严重程度,旧值为 "2",新值为 "3"。
    修改了 解决时效,旧值为 "0",新值为 "-1"。
  6. 2024-05-31 17:13:53, 由 谭颖 解决,方案为 非BUG-纯属误判 。
    修改了 解决方案,旧值为 "",新值为 "feibug"。
    修改了 解决日期,旧值为 "",新值为 "2024-05-31 17:13:25"。
    修改了 指派给 ,旧值为 "tanying",新值为 "yuanhuibin"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "tanying"。
  7. 2024-06-03 10:42:01, 由 袁慧斌 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "yuanhuibin",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "yuanhuibin"。
    修改了 关闭日期,旧值为 "",新值为 "2024-06-03 10:42:01"。
  8. 2024-06-04 14:02:49, 由 陈莉珍 编辑。
    修改了 解决时效,旧值为 "0",新值为 "77.41"。
    修改了 上线时间,旧值为 "0000-00-00 00:00:00",新值为 "2024-05-31 17:13:53"。
    修改了 上线时效,旧值为 "-1",新值为 "77.41"。
所属项目 技术中心-需求池
所属模块 供应链   仓储物流   备库订单
所属计划
所属迭代
Bug类型
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人 谭颖
测试责任人
解决时效 77.41
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2024-06-04 14:02:49
截止日期 0000-00-00
上线时间 2024-05-31 17:13:53
上线时效 77.41
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 袁慧斌 于 2024-05-28 11:49:03
影响环境 577
由谁解决 谭颖 于 2024-05-31 17:13:25
解决版本
解决方案 非BUG-纯属误判
由谁关闭 袁慧斌 于 2024-06-03 10:42:01
最后修改 陈莉珍 于 2024-06-04 14:02:49
相关Bug