项目

一般

简介

需求 #24728

段福星 更新于 将近 4 年 之前

<p><span style="font-size:14px;"><span style="color:#e74c3c;">大数据7月24日上线</span></span></p>

<p>&nbsp;http://192.168.1.244:7777/newOS/24728/#id=e2qc27&amp;p=%E7%94%B5%E9%94%80%E6%95%B0%E6%8D%AE%E8%AF%B4%E6%98%8E</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>to 开发、测试:</p>

<p><br />
上线当天/前一天,一定要让大数据开发先上线,确保上线有数据,可以立刻发现问题。</p>

<p>&nbsp;</p>

<p>-格鲁特</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>开发分支:</p>

<p>工单服务:feature/071224728crmlist&nbsp; &nbsp; &nbsp; dev1</p>

<p>api:feature/0714#24728电销新增实时数据名单</p>

<p>DDL:</p>

<p>&nbsp; ALTER TABLE `yishou_data`.`data_tele_marketing` yishou_data.data_tele_marketing MODIFY COLUMN &nbsp;`user_type` tinyint(1) NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;用户类型 1:昨天注册未激活 &nbsp;2:首二单 3:预流失 4:流失 5:今天+昨天注册名单(实时)&#39;;</p>

<p>&nbsp; ALTER TABLE `yishou_service_order`.`zhongmai_mission` MODIFY COLUMN `from` tinyint NOT NULL DEFAULT &#39;1&#39; COMMENT &#39;类型{1:筛选取号,2:导入取号,3:流失,4:预流失,5:首二单,6:昨天+今天注册名单(实时)}&#39;;</p>

<p>CREATE TABLE `data_tele_marketing_real_time` (<br />
&nbsp; `id` int int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
&nbsp; `user_id` int int(10) NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;用户ID&#39;,<br />
&nbsp; `user_type` tinyint(1) `goods_no` int(10) NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;用户类型 1:昨天注册未激活 &nbsp;2:首二单 3:预流失 4:流失 5:今天+昨天注册名单(实时)&#39;,<br &#39;商品货号&#39;,<br />
&nbsp; `open_time` int `click_times` int(10) NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;打开时间&#39;,<br &#39;点击商品次数&#39;,<br />
&nbsp; `start_time` int `in_cart` tinyint(1) NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;开始时间&#39;,<br &#39;是否加购 0:否 1:是&#39;,<br />
&nbsp; `end_time` int `is_unpay` tinyint(1) NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;结束时间&#39;,<br &#39;是否未支付&#39;,<br />
&nbsp; `update_time` int `is_close` tinyint(1) NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;更新时间&#39;,<br &#39;是否关闭&#39;,<br />
&nbsp; `status` tinyint(3) NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;分配状态{0:未分配,1:已分配,}&#39;,<br />
&nbsp;
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT &#39;创建时间&#39;,<br />
&nbsp; `user_type` tinyint(1) NOT NULL DEFAULT &#39;0&#39; COMMENT &#39;用户类型 1:昨天注册未激活 &nbsp;2:首二单 3:预流失 4:流失 5:今天+昨天注册名单(实时)&#39;,<br />
&nbsp;
PRIMARY KEY (`id`),<br />
&nbsp; KEY `idx_user_type` (`user_type`),<br />
&nbsp; KEY `user_id` (`user_id`)<br />
) ENGINE=InnoDB &nbsp;DEFAULT DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT=&#39;电销用户实时打开情况&#39;;</p> COMMENT=&#39;电销用户实时更新(昨天+今天注册类型数据)&#39;;</p>

<p>CREATE TABLE fmys_tele_register_user_log_bak (<br />
&nbsp; &nbsp; id INT AUTO_INCREMENT,<br />
&nbsp; &nbsp; content longtext NOT NULL,<br />
&nbsp; &nbsp; created_at DATETIME NOT NULL,<br />
&nbsp; &nbsp; PRIMARY KEY(id, created_at)<br />
) ENGINE=Innodb COMMENT=&#39;电销实时数据日志记录 &nbsp;分区12月数据 &nbsp;定时删除每月分区数据&#39;&nbsp;<br />
PARTITION BY RANGE(MONTH(created_at)) (<br />
&nbsp; &nbsp; PARTITION p_1 VALUES LESS THAN (1),<br />
&nbsp; &nbsp; PARTITION p_2 VALUES LESS THAN (2),<br />
&nbsp; &nbsp; PARTITION p_3 VALUES LESS THAN (3),<br />
&nbsp; &nbsp; PARTITION p_4 VALUES LESS THAN (4),<br />
&nbsp; &nbsp; PARTITION p_5 VALUES LESS THAN (5),<br />
&nbsp; &nbsp; PARTITION p_6 VALUES LESS THAN (6),<br />
&nbsp; &nbsp; PARTITION p_7 VALUES LESS THAN (7),<br />
&nbsp; &nbsp; PARTITION p_8 VALUES LESS THAN (8),<br />
&nbsp; &nbsp; PARTITION p_9 VALUES LESS THAN (9),<br />
&nbsp; &nbsp; PARTITION p_10 VALUES LESS THAN (10),<br />
&nbsp; &nbsp; PARTITION p_11 VALUES LESS THAN (11),<br />
&nbsp; &nbsp; PARTITION p_12 VALUES LESS THAN (12),<br />
PARTITION p_catchall VALUES LESS THAN MAXVALUE);</p>


<p>接口:</p>

<p>(修改)获取自动外呼名单列表展示数据&nbsp; &nbsp;http://yapi.yishou.com/project/85/interface/api/15053</p>

<p>(修改)自动外呼任务绑定保存&nbsp; &nbsp;&nbsp;http://yapi.yishou.com/project/85/interface/api/15044</p>

返回

从剪贴板添加图片 (最大尺寸: 50.8 MB)