重现步骤

[步骤]

(@CustomerID int,@OrderSourceID int,@LastUpdateTime datetime,@endTime datetime) update dd set dd.IsOffShelf=cc.IsOffShelf from RB_Product_OrderSourceSKU dd inner join (select distinct a.CustomerID,a.OrderSourceID,a.OrderSourceSKU,case when b.OnlineState=1 then 0 else 1 end IsOffShelf from RB_Ebay_Listing_Product_V2 a (nolock) inner join RB_Ebay_Listing_Basic_V2 b (nolock) on a.ListingBasicID=a.ListingBasicID and a.CustomerID=b.CustomerID AND a.OrdersourceID=B.Ordersourceid and a.SiteCode=b.Sitecode where b.UpdateTime>@LastUpdateTime and b.UpdateTime<@endTime and a.CustomerID=@CustomerID and a.OrderSourceID=@OrderSourceID and isnull(a.OrderSourceSku,'')<>'') cc on dd.CustomerID=cc.CustomerID and dd.OrderSourceID=cc.OrderSourceID and dd.OrderSourceSKU=cc.OrderSourc


其中 包含  inner join RB_Ebay_Listing_Basic_V2 b (nolock) on a.ListingBasicID=a.ListingBasicID  应该是 inner join RB_Ebay_Listing_Basic_V2 b (nolock) on a.ListingBasicID=b.ListingBasicID

[结果]


[期望]

SQL 书写关联错误 


历史记录  
  1. 2025-08-25 15:29:38, 由 袁慧斌 创建。
  2. 2025-08-25 15:30:29, 由 李乐同 指派给 何建宝。
    修改了 指派给,旧值为 "liletong",新值为 "hejianbao"。
  3. 2025-08-25 15:33:20, 由 何建宝 指派给 李乐同。
    修改了 指派给,旧值为 "hejianbao",新值为 "liletong"。
    这个是ebay的表,让笑锋看下
  4. 2025-08-25 15:34:23, 由 李乐同 指派给 胡笑锋。
    修改了 指派给,旧值为 "liletong",新值为 "huxiaofeng"。
  5. 2025-08-25 20:02:08, 由 胡笑锋 解决,方案为 程序BUG 。
    修改了 解决方案,旧值为 "",新值为 "code"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2025-08-25 20:01:21"。
    修改了 指派给 ,旧值为 "huxiaofeng",新值为 "yuanhuibin"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "huxiaofeng"。

    已修正

  6. 2025-08-28 20:07:34, 由 陈莉珍 编辑。
    修改了 所属项目,旧值为 "51",新值为 "52"。
    修改了 所属模块,旧值为 "1852",新值为 "1717"。
    修改了 解决时效,旧值为 "0",新值为 "4.53"。
  7. 2025-08-28 20:07:41, 由 陈莉珍 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "yuanhuibin",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "chenlizhen"。
    修改了 关闭日期,旧值为 "",新值为 "2025-08-28 20:07:41"。
所属项目 智能中心-需求池
所属模块 战略独立项目   EBAY直发
所属计划
所属迭代
Bug类型
严重程度 一般
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人 胡笑锋
测试责任人
解决时效 4.53
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2025-08-28 20:07:41
截止日期 0000-00-00
上线时间 2025-08-25 20:00:00
上线时效 4.51
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 袁慧斌 于 2025-08-25 15:29:37
影响环境 生产环境-业务反馈
由谁解决 胡笑锋 于 2025-08-25 20:01:21
解决版本 主干
解决方案 程序BUG
由谁关闭 陈莉珍 于 2025-08-28 20:07:41
最后修改 陈莉珍 于 2025-08-28 20:07:41
相关Bug