重现步骤

[步骤]

prometheus告警
            开始时间: 21:05:37 

            错误代码: N2105372  

            sql类型: SELECT   

            sql: [21:05:37]  -------------------------------------------------------------
CODE:N2105372
Error:16_207_1_-2146232060
SQL:SELECT COUNT(1) FROM ( SELECT alias.ID,
alias.CustomerID,
alias.PickingGUID,
alias.PrintBatchNo,
w.WareHouseName,
alias.PrintType,
alias.PackNumber,
alias.PickSKUNumber,
alias.SKUNumber,
alias.AddAdminID,
alias.AddAdminName,
alias.AddTime,
alias.PickingAdminID,
alias.PickingAdminName,
alias.PickingTime,
alias.PickComplete,
alias.CompleteTime,
alias.PickingType,
alias.PickingStatus,
alias.PrintLabelBatchRuleId,
alias.PrintLabelBatchRuleName,
alias.PrintPackageType,alias.PriorSort,w.AbnormalWareHouseID
FROM RB_Package_Picking alias(nolock)
LEFT JOIN RB_WareHouse w(nolock)
ON alias.WareHouseID = w.ID
AND alias.CustomerID = w.CustomerID
WHERE alias.CustomerID = 1
AND IsWarehouseArea= 1 AND alias.AddAdminID IN ( 晏,8151 ) ) AS PagerTable
PARAMS:
MESSAGE:Invalid column name '晏'.
TRACE: 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 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.DBOperator.QueryPager(String SQLString, String strOrder, Int32 pageIndex, Int32 pageSize, Int32& recordCount, Int32 times, SqlParameter[] cmdParms)
在 RB.DAL.DBOperator.QueryPager(String SQLString, String strOrder, Int32 pageIndex, Int32 pageSize, Int32& recordCount, Int32 times)
在 RB.DALExtendV2.RB_Package_PickingExtendV2.GetPagerRegionModels(CM_PackagePickingGetPagerModelsParam parameters, Int32& recordCount)
在 PandaBuy.ERP.Web.IrobotBox.Delivery.PickingTaskListV3.Page_Load(Object sender, EventArgs e)
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 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.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.irobotbox_delivery_pickingtasklistv3_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.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)



[结果]


[期望]


历史记录  
  1. 2022-11-28 09:36:45, 由 袁慧斌 创建。
  2. 2022-11-28 14:58:25, 由 胡晓龙 指派给 程伟。
    修改了 指派给,旧值为 "huxiaolong",新值为 "chengwei"。
  3. 2022-11-28 16:32:11, 由 程伟 指派给 鞠智明。
    修改了 指派给,旧值为 "chengwei",新值为 "juzhiming"。
  4. 2022-11-28 18:13:34, 由 鞠智明 添加备注。

    开发报告

    1.问题点:由于网络卡顿,导致操作人员下拉框的数据还没有加载完,客户就通过搜索选择人员,然后直接点击搜索,导致把名字的中文名称也代入搜索了,查询条件人员是根据id来查询的,

    优化方案:

    在后端接收到这个操作人员的数据时判断下,如果值转换为int类型不大于0 的数据排除掉;


    影响到的功能点:

    页面列表搜索查询

    当前条件导出数据

  5. 2022-11-28 18:13:47, 由 鞠智明 指派给 程伟。
    修改了 指派给,旧值为 "juzhiming",新值为 "chengwei"。
  6. 2022-11-28 19:01:27, 由 程伟 确认Bug。
    修改了 Bug类型 ,旧值为 "",新值为 "bydesign"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
  7. 2022-11-28 19:01:33, 由 程伟 解决,方案为 系统设计缺陷 。
    修改了 解决方案,旧值为 "",新值为 "bydesign"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2022-11-28 19:01:29"。
    修改了 指派给 ,旧值为 "chengwei",新值为 "yuanhuibin"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 解决者 ,旧值为 "",新值为 "chengwei"。
  8. 2022-11-29 16:00:10, 由 刘超 添加备注。
  9. 2022-11-29 16:01:19, 由 刘超 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "yuanhuibin",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "liuchao"。
    修改了 关闭日期,旧值为 "",新值为 "2022-11-29 16:01:19"。

    导出功能正常

  10. 2022-11-29 16:02:33, 由 刘超 指派给 袁慧斌。
    修改了 指派给,旧值为 "closed",新值为 "yuanhuibin"。
  11. 2022-12-02 17:32:18, 由 袁慧斌 指派给 袁慧斌。
  12. 2022-12-02 17:35:24, 由 袁慧斌 激活。
    修改了 Bug状态 ,旧值为 "closed",新值为 "active"。
    修改了 激活日期,旧值为 "",新值为 "2022-12-02 17:35:24"。
    修改了 激活次数,旧值为 "0",新值为 "1"。
    修改了 解决方案,旧值为 "bydesign",新值为 ""。
    修改了 解决日期,旧值为 "2022-11-28 19:01:29",新值为 "0000-00-00"。
    修改了 解决者 ,旧值为 "chengwei",新值为 ""。
    修改了 解决版本,旧值为 "trunk",新值为 ""。
    修改了 由谁关闭,旧值为 "liuchao",新值为 ""。
    修改了 关闭日期,旧值为 "2022-11-29 16:01:19",新值为 "0000-00-00"。
  13. 2022-12-02 17:35:36, 由 袁慧斌 解决,方案为 系统设计缺陷 。
    修改了 解决方案,旧值为 "",新值为 "bydesign"。
    修改了 解决日期,旧值为 "",新值为 "2022-12-02 17:35:27"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 解决者 ,旧值为 "",新值为 "yuanhuibin"。
  14. 2022-12-02 17:35:40, 由 袁慧斌 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "yuanhuibin",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "yuanhuibin"。
    修改了 关闭日期,旧值为 "",新值为 "2022-12-02 17:35:40"。
  15. 2023-11-17 09:27:45, 由 刘超 编辑。
    修改了 所属模块,旧值为 "1742",新值为 "1854"。
  16. 2023-11-17 09:53:55, 由 刘超 编辑。
    修改了 所属模块,旧值为 "1854",新值为 "1863"。
所属项目 技术中心-需求池
所属模块 系统运维   性能优化
所属计划
所属迭代
Bug类型 系统设计缺陷
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人
测试责任人
解决时效 0
激活次数 1
激活日期 2022-12-02 17:35:24
是否确认 是
当前指派 Closed 于 2022-12-02 17:35:40
截止日期 0000-00-00
上线时间
上线时效
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 袁慧斌 于 2022-11-28 09:36:45
影响环境 577
由谁解决 袁慧斌 于 2022-12-02 17:35:27
解决版本
解决方案 系统设计缺陷
由谁关闭 袁慧斌 于 2022-12-02 17:35:40
最后修改 刘超 于 2023-11-17 09:53:48
相关Bug