任务描述
暂无
需求描述
需求地址:https://alidocs.dingtalk.com/i/nodes/ZX6GRezwJl7BvlK5hqqzEgmwVdqbropQ?utm_scene=team_space
竞品分析,关键词分析板块 监控视图,新增“添加关键词”功能
验收标准
158Create
历史记录  
  1. 2024-10-12 11:39:35, 由 张居瓦 创建。
  2. 2024-10-12 11:40:05, 由 张居瓦 启动。
    修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2024-10-12 11:40:04"。
    修改了 任务状态,旧值为 "wait",新值为 "doing"。
  3. 2024-10-14 17:27:19, 由 张居瓦 完成。
    修改了 总计消耗,旧值为 "0",新值为 "8"。
    修改了 实际完成,旧值为 "",新值为 "2024-10-14 17:27:17"。
    修改了 任务状态,旧值为 "doing",新值为 "done"。
    修改了 预计剩余,旧值为 "8",新值为 "0"。
    修改了 由谁完成,旧值为 "",新值为 "zhangjuwa"。
  4. 2024-10-18 15:36:25, 由 张居瓦 添加备注。


    测试提示

    1. 第一步获取最新日期的sql:
    select max(collection_date) from t_amazon_competitors_keyword_massive_ranking

    2.

    通过父asin找到这个asin 关联的类目,
    select category from t_amazon_competitors_category_relation where country_code='' and parent_asin in(xx) and is_deleted=0

    3. 
    执行统计sql
     
     select
                ka.parent_asin,
                ka.country_code,
                count(case when msr.natural_ranking <= 3 then 1 else null end) as top3Num,
                count(case when msr.natural_ranking <= 6 then 1 else null end) as top6Num,
                count(case when msr.natural_ranking <= 10 then 1 else null end) as top10Num,
                count(case when msr.natural_ranking <= 16 then 1 else null end) as top16Num,
                count(case when msr.natural_ranking <= 48 then 1 else null end) as firstPageNum,
                count(case when msr.ac_sign is not null and msr.ac_sign !='' then 1 else null end) as acSignNum
            from t_amazon_competitors_keyword kw
            join t_amazon_competitors_keyword_massive_ranking msr on kw.id = msr.keyword_id
            left join t_amazon_competitors_keyword_asin ka on ka.asin = msr.asin and ka.country_code = msr.country_code
            WHERE
               
                     ka.parent_asin in('B0BW2VGT6F','B0D2XZ8FSW','B0D4CT3YFY')                                 
                    and ka.country_code = 'US' and  kw.category IN('第二步的类名')
               
                    and msr.collection_date ='第一步的日期'
                
                and ka.keyword_type = 2
     
            group by
            ka.parent_asin,
            ka.country_code

    自测截图


    {

      "success": true,
      "errCode": null,
      "errMessage": null,
      "data": {
        "finalSyncDate": "2024-10-12",
        "competitorsSum": [
          {
            "parentAsin": "B09G65K144",
            "asin": null,
            "acSignNum": null,
            "top3Num": null,
            "top6Num": null,
            "top10Num": null,
            "top16Num": null,
            "firstPageNum": null,
            "dateLabel": null,
            "dateLabelYea": null
          },
          {
            "parentAsin": "B09PZV54SP",
            "asin": null,
            "acSignNum": null,
            "top3Num": null,
            "top6Num": null,
            "top10Num": null,
            "top16Num": null,
            "firstPageNum": null,
            "dateLabel": null,
            "dateLabelYea": null
          },
          {
            "parentAsin": "B09QRVV8QM",
            "asin": null,
            "acSignNum": null,
            "top3Num": null,
            "top6Num": null,
            "top10Num": null,
            "top16Num": null,
            "firstPageNum": null,
            "dateLabel": null,
            "dateLabelYea": null
          },
          {
            "parentAsin": "B082WXB95Q",
            "asin": null,
            "acSignNum": null,
            "top3Num": null,
            "top6Num": null,
            "top10Num": null,
            "top16Num": null,
            "firstPageNum": null,
            "dateLabel": null,
            "dateLabelYea": null
          }
        ]
      }

    }

    新增类名映射之后

    {
      "success": true,
      "errCode": null,
      "errMessage": null,
      "data": {
        "finalSyncDate": "2024-10-12",
        "competitorsSum": [
          {
            "parentAsin": "B09PZV54SP",
            "asin": null,
            "acSignNum": 28,
            "top3Num": 74,
            "top6Num": 201,
            "top10Num": 375,
            "top16Num": 666,
            "firstPageNum": 1990,
            "dateLabel": null,
            "dateLabelYea": null
          },
          {
            "parentAsin": "B082WXB95Q",
            "asin": null,
            "acSignNum": 154,
            "top3Num": 170,
            "top6Num": 426,
            "top10Num": 890,
            "top16Num": 1507,
            "firstPageNum": 3652,
            "dateLabel": null,
            "dateLabelYea": null
          },
          {
            "parentAsin": "B09QRVV8QM",
            "asin": null,
            "acSignNum": 0,
            "top3Num": 283,
            "top6Num": 477,
            "top10Num": 693,
            "top16Num": 1045,
            "firstPageNum": 2548,
            "dateLabel": null,
            "dateLabelYea": null
          },
          {
            "parentAsin": "B09G65K144",
            "asin": null,
            "acSignNum": null,
            "top3Num": null,
            "top6Num": null,
            "top10Num": null,
            "top16Num": null,
            "firstPageNum": null,
            "dateLabel": null,
            "dateLabelYea": null
          }
        ]
      }
    }


    git



  5. 2024-11-06 09:34:50, 由 周杰 关闭。
    修改了 任务状态,旧值为 "done",新值为 "closed"。
    修改了 指派给 ,旧值为 "zhangjuwa",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "zhoujie"。
    修改了 关闭时间,旧值为 "0000-00-00 00:00:00",新值为 "2024-11-06 09:34:50"。
    修改了 关闭原因,旧值为 "",新值为 "done"。
所属迭代 有品-星级预警
所属模块 技术中心-需求池  亚马逊
相关需求 竞品分析,监控视图,新增“添加关键词”功能
指派给 Closed 于 2024-11-06 09:34:50
任务类型 后端
任务标签 初始
开发组 百货开发组
任务状态 已关闭
进度 100%
优先级 P1
关键词
抄送给
由谁创建 张居瓦 于 2024-10-12 11:39:35
由谁完成 张居瓦 于 2024-10-14 17:27:17
由谁取消 暂无
由谁关闭 周杰 于 2024-11-06 09:34:50
关闭原因 已完成
最后编辑 周杰 于 2024-11-06 09:34:50
团队 最初预计 总计消耗 预计剩余
工时信息
最初预计 8工时
总计消耗 8工时
预计剩余 0工时
预计开始 2024-10-12
实际开始 2024-10-12
截止日期 2024-10-15