重现步骤

[步骤]

(@CustomerID0 int,@DeleteStatus1 int,@Id2 int)SELECT  TOP 5000  [ID] AS [Id] , [SKU] AS [SKU] , [AddTime] AS [AddTime] , [ProductState] AS [ProductState] , [IsGroup] AS [IsGroup]  FROM [RB_Product] WITH(NOLOCK)   WHERE ((( [CustomerID] = @CustomerID0 ) AND ( [DeleteStatus] = @DeleteStatus1 )) AND ( [ID] < @Id2 ))ORDER BY [ID] DESC


(@CustomerID0 int,@DeleteStatus1 int,@Id2 int,@MethodConst3 nvarchar(4000),@MethodConst4 nvarchar(4000))SELECT  TOP 1000  [p].[ID] AS [ID] , [p].[SKU] AS [SKU] , ISNULL([pa].[NoSaleCountry],@MethodConst3) AS [NoSaleCountry] , ISNULL([pa].[NoSalePlatform],@MethodConst4) AS [NoSalePlatform]  FROM [RB_Product] [p] WITH(NOLOCK)  Inner JOIN [RB_Product_Admin] [pa] WITH(NOLOCK) ON (( [p].[CustomerID] = [pa].[CustomerID] ) AND ( [p].[SKU] = [pa].[SKU] ))   WHERE ((( [p].[CustomerID] = @CustomerID0 ) AND ( [p].[DeleteStatus] = @DeleteStatus1 )) AND ( [p].[ID] > @Id2 ))ORDER BY [p].[ID] ASC 也有同样问题




[结果]


[期望]

1.能否通过ID 范围 去同步数据,返回的数据在程序内部排序

2.建议产品库 系统上有大量的独立库 建议从其他库读取数据
历史记录  
  1. 2026-08-25 18:18:55, 由 袁慧斌 创建。
  2. 2026-08-25 18:31:33, 由 袁慧斌 编辑。
    修改了 解决时效,旧值为 "0",新值为 "-1"。
    修改了 重现步骤,区别为:
    004-
    004+ (@CustomerID0 int,@DeleteStatus1 int,@Id2 int,@MethodConst3 nvarchar(4000),@MethodConst4 nvarchar(4000))SELECT TOP 1000 [p].[ID] AS [ID] , [p].[SKU] AS [SKU] , ISNULL([pa].[NoSaleCountry],@MethodConst3) AS [NoSaleCountry] , ISNULL([pa].[NoSalePlatform],@MethodConst4) AS [NoSalePlatform] FROM [RB_Product] [p] WITH(NOLOCK) Inner JOIN [RB_Product_Admin] [pa] WITH(NOLOCK) ON (( [p].[CustomerID] = [pa].[CustomerID] ) AND ( [p].[SKU] = [pa].[SKU] )) WHERE ((( [p].[CustomerID] = @CustomerID0 ) AND ( [p].[DeleteStatus] = @DeleteStatus1 )) AND ( [p].[ID] &gt; @Id2 ))ORDER BY [p].[ID] ASC 也有同样问题
    006-
    006+
    007- [结果]
    007+
    008- [期望]
    008+
    009- 1.能否通过ID 范围 去同步数据,返回的数据在程序内部排序
    009+ [结果]
    010- 2.建议产品库 系统上有大量的独立库 建议从其他库读取数据
    010+ [期望]
    011+ 1.能否通过ID 范围 去同步数据,返回的数据在程序内部排序
    012+ 2.建议产品库 系统上有大量的独立库 建议从其他库读取数据
    004- <p><img src="{572686.png}" alt="" /></p>
    004+ <p><span>(@CustomerID0 int,@DeleteStatus1 int,@Id2 int,@MethodConst3 nvarchar(4000),@MethodConst4 nvarchar(4000))SELECT TOP 1000 [p].[ID] AS [ID] , [p].[SKU] AS [SKU] , ISNULL([pa].[NoSaleCountry],@MethodConst3) AS [NoSaleCountry] , ISNULL([pa].[NoSalePlatform],@MethodConst4) AS [NoSalePlatform] FROM [RB_Product] [p] WITH(NOLOCK) Inner JOIN [RB_Product_Admin] [pa] WITH(NOLOCK) ON (( [p].[CustomerID] = [pa].[CustomerID] ) AND ( [p].[SKU] = [pa].[SKU] )) WHERE ((( [p].[CustomerID] = @CustomerID0 ) AND ( [p].[DeleteStatus] = @DeleteStatus1 )) AND ( [p].[ID] &gt; @Id2 ))ORDER BY [p].[ID] ASC 也有同样问题</span></p>
    006- <p><br /></p>
    006+ <p><img src="{572686.png}" alt="" /></p>
    007- <p>[结果]</p>
    007+ <p><br /></p>
    008- <br /><p>[期望]</p>
    008+ <p><br /></p>
    009- <p>1.能否通过ID 范围 去同步数据,返回的数据在程序内部排序</p>
    009+ <p>[结果]</p>
    010- 2.建议产品库 系统上有大量的独立库 建议从其他库读取数据
    010+ <br /><p>[期望]</p>
    011+ <p>1.能否通过ID 范围 去同步数据,返回的数据在程序内部排序</p>
    012+ 2.建议产品库 系统上有大量的独立库 建议从其他库读取数据
    (@CustomerID0 int,@DeleteStatus1 int,@Id2 int,@MethodConst3 nvarchar(4000),@MethodConst4 nvarchar(4000))SELECT  TOP 1000  [p].[ID] AS [ID] , [p].[SKU] AS [SKU] , ISNULL([pa].[NoSaleCountry],@MethodConst3) AS [NoSaleCountry] , ISNULL([pa].[NoSalePlatform],@MethodConst4) AS [NoSalePlatform]  FROM [RB_Product] [p] WITH(NOLOCK)  Inner JOIN [RB_Product_Admin] [pa] WITH(NOLOCK) ON (( [p].[CustomerID] = [pa].[CustomerID] ) AND ( [p].[SKU] = [pa].[SKU] ))   WHERE ((( [p].[CustomerID] = @CustomerID0 ) AND ( [p].[DeleteStatus] = @DeleteStatus1 )) AND ( [p].[ID] > @Id2 ))ORDER BY [p].[ID] ASC 也有同样问题
  3. 2026-08-25 19:25:09, 由 李乐同 指派给 何建宝。
    修改了 指派给,旧值为 "liletong",新值为 "hejianbao"。
  4. 2026-08-25 19:48:27, 由 何建宝 指派给 许炯华。
    修改了 指派给,旧值为 "hejianbao",新值为 "xujionghua"。
  5. 2026-08-25 20:18:22, 由 许炯华 解决,方案为 非BUG-纯属误判 。
    修改了 解决方案,旧值为 "",新值为 "feibug"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2026-08-25 20:17:58"。
    修改了 指派给 ,旧值为 "xujionghua",新值为 "yuanhuibin"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "xujionghua"。

    毫秒级别


    SELECT  TOP 5000  [ID] AS [Id] , [SKU] AS [SKU] , [AddTime] AS [AddTime] , [ProductState] AS [ProductState] , [IsGroup] AS [IsGroup]  FROM [RB_Product] WITH(NOLOCK)   WHERE ((( [CustomerID] = 1 ) AND ( [DeleteStatus] = 0 )) AND ( [ID] < 5000000 ))ORDER BY [ID] DESC


    SELECT  TOP 1000  [p].[ID] AS [ID] , [p].[SKU] AS [SKU] , ISNULL([pa].[NoSaleCountry],'') AS [NoSaleCountry] , ISNULL([pa].[NoSalePlatform],'') AS [NoSalePlatform]  FROM [RB_Product] [p] WITH(NOLOCK)  Inner JOIN [RB_Product_Admin] [pa] WITH(NOLOCK) ON (( [p].[CustomerID] = [pa].[CustomerID] ) AND ( [p].[SKU] = [pa].[SKU] ))   WHERE ((( [p].[CustomerID] = 1 ) AND ( [p].[DeleteStatus] = 0 )) AND ( [p].[ID] > 1000000 ))ORDER BY [p].[ID] ASC 

  6. 2026-08-26 09:56:40, 由 袁慧斌 编辑。
    修改了 开发责任人,旧值为 "",新值为 "xujionghua"。
    修改了 测试责任人,旧值为 "",新值为 "admin"。
    修改了 解决时效 ,旧值为 "0",新值为 "1.98"。
    修改了 截止日期 ,旧值为 "0000-00-00",新值为 "2026-08-25"。
    修改了 上线时间 ,旧值为 "0000-00-00 00:00:00",新值为 "2026-08-26 09:56"。
    修改了 上线时效 ,旧值为 "-1",新值为 "15.62"。
  7. 2026-08-26 09:56:43, 由 袁慧斌 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "yuanhuibin",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "yuanhuibin"。
    修改了 关闭日期,旧值为 "",新值为 "2026-08-26 09:56:43"。
所属项目 技术中心-需求池
所属模块 供应链   产品采购   产品库
所属计划
所属迭代
Bug类型
严重程度 一般
优先级 P2
Bug状态 已关闭
业务部门 技术研发中心
影响功能
开发责任人 许炯华
测试责任人 admin
解决时效 1.98
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2026-08-26 09:56:43
截止日期 2026-08-25
上线时间 2026-08-26 09:56:00
上线时效 15.62
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 袁慧斌 于 2026-08-25 18:18:55
影响环境 生产环境-线上测试
由谁解决 许炯华 于 2026-08-25 20:17:58
解决版本 主干
解决方案 非BUG-纯属误判
由谁关闭 袁慧斌 于 2026-08-26 09:56:43
最后修改 袁慧斌 于 2026-08-26 09:56:43
相关Bug