需求 #18334
<p>字段:供应商id,三级品类id,二级市场id,价格区间,销售额,销量, 数据统计日期</p>
<p>价格区间指的是(10-20,20-30)这种 格式要求,如价格区间为(10,20],则实际写入值为 (10-20]</p>
<p>技术对接人:马俊雄</p>
<p>单款价值 = 销售额 / 当期该供应商当前品类上架款数(包含销量为0的商品)</p>
<p>CREATE TABLE `fmys_cat_sales_data_by_supply` (<br />
`id` int(11) `dt` date NOT NULL AUTO_INCREMENT,<br COMMENT '日期',<br />
`supply_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '关联供应商ID',<br />
`cat_id` int(10) NOT NULL DEFAULT '0' COMMENT '分类id',<br />
`sales` int(10) `market_id` varchar(60) NOT NULL DEFAULT '0' COMMENT '销量',<br '二级市场id',<br />
`single_value` `sales_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '单款价值',<br '销售额',<br />
`my_best_price_range` varchar(30) `sales` int(10) NOT NULL DEFAULT '0' COMMENT '我的最佳',<br '销量',<br />
`the_best_price_range` varchar(30) `price_range` varchar(60) NOT NULL DEFAULT '0' COMMENT '全场最佳',<br '价格区间',<br />
`time_duration` tinyint(3) NOT NULL COMMENT '时间区间{0:昨天,1:7天,2:30天}',<br />
`auto_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '自动时间',<br />
PRIMARY KEY (`id`) USING BTREE,<br `single_value` decimal(10,2) NOT NULL COMMENT '单款价值',<br />
PRIMARY KEY `supply_id` (`supply_id`) (`dt`,`supply_id`,`cat_id`,`price_range`) USING BTREE,<br />
KEY `time_duration` (`time_duration`) USING BTREE<br />
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8 COMMENT='数据组统计,我的品类大数据盘,对接人-方秋顺';</p>
<p>价格区间指的是(10-20,20-30)这种 格式要求,如价格区间为(10,20],则实际写入值为 (10-20]</p>
<p>技术对接人:马俊雄</p>
<p>单款价值 = 销售额 / 当期该供应商当前品类上架款数(包含销量为0的商品)</p>
<p>CREATE TABLE `fmys_cat_sales_data_by_supply` (<br />
`id` int(11) `dt` date NOT NULL AUTO_INCREMENT,<br COMMENT '日期',<br />
`supply_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '关联供应商ID',<br />
`cat_id` int(10) NOT NULL DEFAULT '0' COMMENT '分类id',<br />
`sales` int(10) `market_id` varchar(60) NOT NULL DEFAULT '0' COMMENT '销量',<br '二级市场id',<br />
`single_value` `sales_amount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '单款价值',<br '销售额',<br />
`my_best_price_range` varchar(30) `sales` int(10) NOT NULL DEFAULT '0' COMMENT '我的最佳',<br '销量',<br />
`the_best_price_range` varchar(30) `price_range` varchar(60) NOT NULL DEFAULT '0' COMMENT '全场最佳',<br '价格区间',<br />
`time_duration` tinyint(3) NOT NULL COMMENT '时间区间{0:昨天,1:7天,2:30天}',<br />
`auto_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '自动时间',<br />
PRIMARY KEY (`id`) USING BTREE,<br `single_value` decimal(10,2) NOT NULL COMMENT '单款价值',<br />
PRIMARY KEY `supply_id` (`supply_id`) (`dt`,`supply_id`,`cat_id`,`price_range`) USING BTREE,<br />
KEY `time_duration` (`time_duration`) USING BTREE<br />
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8 COMMENT='数据组统计,我的品类大数据盘,对接人-方秋顺';</p>