重现步骤

15428311



非共享数量  40508

select sum(t.fulfillable_quantity)
from (
    select tappd.sku,tappd.msku,tappd.source_id,tappd.is_pan_eu,tappd.is_narf,tappd.is_efn,tappi.fulfillable_quantity
from (
            select sku,source_id,max(last_buy_price) as last_buy_price,max(ultimate_responsibility) as ultimate_responsibility
            from t_sku_bulletin_board
            where customer_id=1
            and version=575
            and sku='15428311'
            group by sku,source_id
        ) as tsbb
inner join t_amz_product_performance_dim as tappd
on tappd.sku=tsbb.sku and tappd.source_id=tsbb.source_id
inner join t_amz_product_performance_inventory as tappi
ON tappd.source_id = tappi.source_id AND tappd.msku = tappi.msku
where tappd.is_pan_eu=0 and tappd.is_narf=0 and tappd.is_efn=0
     ) t;


共享数量 8751+1097+476

select tappd.sku,tappd.msku,tappd.source_id,tappd.is_pan_eu,tappd.is_narf,tappd.is_efn,tappi.fulfillable_quantity
from (
            select sku,source_id,max(last_buy_price) as last_buy_price,max(ultimate_responsibility) as ultimate_responsibility
            from t_sku_bulletin_board
            where customer_id=1
            and version=575
            and sku='15428311'
            group by sku,source_id
        ) as tsbb
inner join t_amz_product_performance_dim as tappd
on tappd.sku=tsbb.sku and tappd.source_id=tsbb.source_id
inner join t_amz_product_performance_inventory as tappi
ON tappd.source_id = tappi.source_id AND tappd.msku = tappi.msku
where tappd.is_pan_eu > 0 or tappd.is_narf > 0 or tappd.is_efn > 0
ORDER BY msku;



列表少算了共享关系中的OK-MPK1-5YCA

历史记录  
  1. 2023-11-07 09:48:43, 由 夏秋生 创建。
  2. 2023-11-07 10:41:45, 由 林鹏城 解决,方案为 程序BUG 。
    修改了 解决方案,旧值为 "",新值为 "code"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2023-11-07 10:41:36"。
    修改了 指派给 ,旧值为 "linpengcheng",新值为 "xiaqiusheng"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "linpengcheng"。
    程序逻辑Bug
  3. 2023-11-07 14:13:44, 由 夏秋生 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "xiaqiusheng",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "xiaqiusheng"。
    修改了 关闭日期,旧值为 "",新值为 "2023-11-07 14:13:44"。
  4. 2023-11-17 11:22:53, 由 刘超 编辑。
    修改了 所属模块,旧值为 "1812",新值为 "1878"。
所属项目 技术中心-需求池
所属模块 多平台   java独立项目
所属计划
所属迭代 开发项目部 - 虎鲸BI - 迭代24
Bug类型
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人
测试责任人
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2023-11-07 14:13:44
截止日期 0000-00-00
上线时间
上线时效
操作系统
浏览器
关键词
抄送给
所属迭代 开发项目部 - 虎鲸BI - 迭代24
相关需求
相关任务
由谁创建 夏秋生 于 2023-11-07 09:48:43
影响环境 测试环境-测试反馈
由谁解决 林鹏城 于 2023-11-07 10:41:36
解决版本 主干
解决方案 程序BUG
由谁关闭 夏秋生 于 2023-11-07 14:13:44
最后修改 刘超 于 2023-11-17 11:22:49
相关Bug