組件化

出自 qingwei personal wiki
於 2019年2月16日 (六) 08:56 由 Qingwei (對話 | 貢獻) 所做的修訂 (测试接口)
前往: 導覽搜尋

首頁經營數據店鋪指標概覽

SQL

select
    stat_date as statDate,
    fb_uv_1d_013 as fbUv,
    suc_ord_amt_1d as orderAmount,
    pv_1d_01 as shopPv,
    suc_ord_cnt_1d as orderCount,
    clk_cnt_1d_092 as searchClicks,
    uv_1d_063 as shopUv,
    fb_uv_1d_014 as tmUv,
    imps_cnt_1d_027 as searchImps,
    fb_cnt_1d_013 as fbPv  
from
    dwp_en_dm_vip_comp_term_eff_d  
where
    admin_mbr_seq = '200042360'      
    and terminal_type = 'TOTAL'      
    and (stat_date = '2018-12-17' or stat_date = '2018-12-16')     
    and statistic_type = 'all'

映射表接口

[
  "vip/product/getProdcutSummaryTrend",
  {
    "totalFbProductCount": "有询盘产品数",
    "totalOrderProductCount": "有订单产品数",
    "totalProductCount" : "产品总数",
    "totalVisitProductCount": "有访问产品数"
  },
  {
    "beginDate": "开始日期",
    "endDate": "结束日期",
    "statisticsType": "日期类型",
    "adminMemberSeq": "用户ID"
  },
  {
    "statDate": "日期"
  }
]

現有測試接口

[
  "vip/product/getProdcutSummaryTrend",
  {
    "beginDate": "2019-01-01",
    "endDate": "2019-01-02",
    "statisticsType": "day",
    "adminMemberSeq": "200042360"
  }
]