/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50719 Source Host : localhost:3306 Source Database : mall Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2018-10-25 14:15:04 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for cms_help -- ---------------------------- DROP TABLE IF EXISTS `cms_help`; CREATE TABLE `cms_help` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `category_id` bigint(20) DEFAULT NULL, `icon` varchar(500) DEFAULT NULL, `title` varchar(100) DEFAULT NULL, `show_status` int(1) DEFAULT NULL, `create_time` datetime DEFAULT NULL, `read_count` int(1) DEFAULT NULL, `content` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='帮助表'; -- ---------------------------- -- Records of cms_help -- ---------------------------- -- ---------------------------- -- Table structure for cms_help_category -- ---------------------------- DROP TABLE IF EXISTS `cms_help_category`; CREATE TABLE `cms_help_category` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `icon` varchar(500) DEFAULT NULL COMMENT '分类图标', `help_count` int(11) DEFAULT NULL COMMENT '专题数量', `show_status` int(2) DEFAULT NULL, `sort` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='帮助分类表'; -- ---------------------------- -- Records of cms_help_category -- ---------------------------- -- ---------------------------- -- Table structure for cms_member_report -- ---------------------------- DROP TABLE IF EXISTS `cms_member_report`; CREATE TABLE `cms_member_report` ( `id` bigint(20) DEFAULT NULL, `report_type` int(1) DEFAULT NULL COMMENT '举报类型:0->商品评价;1->话题内容;2->用户评论', `report_member_name` varchar(100) DEFAULT NULL COMMENT '举报人', `create_time` datetime DEFAULT NULL, `report_object` varchar(100) DEFAULT NULL, `report_status` int(1) DEFAULT NULL COMMENT '举报状态:0->未处理;1->已处理', `handle_status` int(1) DEFAULT NULL COMMENT '处理结果:0->无效;1->有效;2->恶意', `note` varchar(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户举报表'; -- ---------------------------- -- Records of cms_member_report -- ---------------------------- -- ---------------------------- -- Table structure for cms_prefrence_area -- ---------------------------- DROP TABLE IF EXISTS `cms_prefrence_area`; CREATE TABLE `cms_prefrence_area` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `sub_title` varchar(255) DEFAULT NULL, `pic` varbinary(500) DEFAULT NULL COMMENT '展示图片', `sort` int(11) DEFAULT NULL, `show_status` int(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='优选专区'; -- ---------------------------- -- Records of cms_prefrence_area -- ---------------------------- INSERT INTO `cms_prefrence_area` VALUES ('1', '让音质更出众', '音质不打折 完美现场感', null, null, '1'); INSERT INTO `cms_prefrence_area` VALUES ('2', '让音质更出众22', '让音质更出众22', null, null, null); INSERT INTO `cms_prefrence_area` VALUES ('3', '让音质更出众33', null, null, null, null); INSERT INTO `cms_prefrence_area` VALUES ('4', '让音质更出众44', null, null, null, null); -- ---------------------------- -- Table structure for cms_prefrence_area_product_relation -- ---------------------------- DROP TABLE IF EXISTS `cms_prefrence_area_product_relation`; CREATE TABLE `cms_prefrence_area_product_relation` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `prefrence_area_id` bigint(20) DEFAULT NULL, `product_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COMMENT='优选专区和产品关系表'; -- ---------------------------- -- Records of cms_prefrence_area_product_relation -- ---------------------------- INSERT INTO `cms_prefrence_area_product_relation` VALUES ('1', '1', '12'); INSERT INTO `cms_prefrence_area_product_relation` VALUES ('2', '1', '13'); INSERT INTO `cms_prefrence_area_product_relation` VALUES ('3', '1', '14'); INSERT INTO `cms_prefrence_area_product_relation` VALUES ('4', '1', '18'); INSERT INTO `cms_prefrence_area_product_relation` VALUES ('5', '1', '7'); INSERT INTO `cms_prefrence_area_product_relation` VALUES ('6', '2', '7'); INSERT INTO `cms_prefrence_area_product_relation` VALUES ('7', '1', '22'); INSERT INTO `cms_prefrence_area_product_relation` VALUES ('24', '1', '23'); -- ---------------------------- -- Table structure for cms_subject -- ---------------------------- DROP TABLE IF EXISTS `cms_subject`; CREATE TABLE `cms_subject` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `category_id` bigint(20) DEFAULT NULL, `title` varchar(100) DEFAULT NULL, `pic` varchar(500) DEFAULT NULL COMMENT '专题主图', `product_count` int(11) DEFAULT NULL COMMENT '关联产品数量', `recommend_status` int(1) DEFAULT NULL, `create_time` datetime DEFAULT NULL, `collect_count` int(11) DEFAULT NULL, `read_count` int(11) DEFAULT NULL, `comment_count` int(11) DEFAULT NULL, `album_pics` varchar(1000) DEFAULT NULL COMMENT '画册图片用逗号分割', `description` varchar(1000) DEFAULT NULL, `show_status` int(1) DEFAULT NULL COMMENT '显示状态:0->不显示;1->显示', `content` text, `forward_count` int(11) DEFAULT NULL COMMENT '转发数', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='专题表'; -- ---------------------------- -- Records of cms_subject -- ---------------------------- INSERT INTO `cms_subject` VALUES ('1', '1', 'polo衬衫的也时尚', null, null, null, null, null, null, null, null, null, null, null, null); INSERT INTO `cms_subject` VALUES ('2', '2', '大牌手机低价秒', null, null, null, null, null, null, null, null, null, null, null, null); INSERT INTO `cms_subject` VALUES ('3', '2', '晓龙845新品上市', null, null, null, null, null, null, null, null, null, null, null, null); INSERT INTO `cms_subject` VALUES ('4', '1', '夏天应该穿什么', null, null, null, null, null, null, null, null, null, null, null, null); INSERT INTO `cms_subject` VALUES ('5', '1', '夏季精选', null, null, null, null, null, null, null, null, null, null, null, null); INSERT INTO `cms_subject` VALUES ('6', '2', '品牌手机降价', null, null, null, null, null, null, null, null, null, null, null, null); -- ---------------------------- -- Table structure for cms_subject_category -- ---------------------------- DROP TABLE IF EXISTS `cms_subject_category`; CREATE TABLE `cms_subject_category` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `icon` varchar(500) DEFAULT NULL COMMENT '分类图标', `subject_count` int(11) DEFAULT NULL COMMENT '专题数量', `show_status` int(2) DEFAULT NULL, `sort` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='专题分类表'; -- ---------------------------- -- Records of cms_subject_category -- ---------------------------- INSERT INTO `cms_subject_category` VALUES ('1', '服装专题', null, null, null, null); INSERT INTO `cms_subject_category` VALUES ('2', '手机专题', null, null, null, null); -- ---------------------------- -- Table structure for cms_subject_comment -- ---------------------------- DROP TABLE IF EXISTS `cms_subject_comment`; CREATE TABLE `cms_subject_comment` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `subject_id` bigint(20) DEFAULT NULL, `member_nick_name` varchar(255) DEFAULT NULL, `member_icon` varchar(255) DEFAULT NULL, `content` varchar(1000) DEFAULT NULL, `create_time` datetime DEFAULT NULL, `show_status` int(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='专题评论表'; -- ---------------------------- -- Records of cms_subject_comment -- ---------------------------- -- ---------------------------- -- Table structure for cms_subject_product_relation -- ---------------------------- DROP TABLE IF EXISTS `cms_subject_product_relation`; CREATE TABLE `cms_subject_product_relation` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `subject_id` bigint(20) DEFAULT NULL, `product_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 COMMENT='专题商品关系表'; -- ---------------------------- -- Records of cms_subject_product_relation -- ---------------------------- INSERT INTO `cms_subject_product_relation` VALUES ('1', '1', '12'); INSERT INTO `cms_subject_product_relation` VALUES ('2', '1', '13'); INSERT INTO `cms_subject_product_relation` VALUES ('3', '1', '14'); INSERT INTO `cms_subject_product_relation` VALUES ('4', '1', '18'); INSERT INTO `cms_subject_product_relation` VALUES ('5', '1', '7'); INSERT INTO `cms_subject_product_relation` VALUES ('6', '2', '7'); INSERT INTO `cms_subject_product_relation` VALUES ('7', '1', '22'); INSERT INTO `cms_subject_product_relation` VALUES ('29', '1', '23'); INSERT INTO `cms_subject_product_relation` VALUES ('30', '4', '23'); INSERT INTO `cms_subject_product_relation` VALUES ('31', '5', '23'); INSERT INTO `cms_subject_product_relation` VALUES ('38', '2', '26'); INSERT INTO `cms_subject_product_relation` VALUES ('39', '3', '26'); INSERT INTO `cms_subject_product_relation` VALUES ('40', '6', '26'); -- ---------------------------- -- Table structure for cms_topic -- ---------------------------- DROP TABLE IF EXISTS `cms_topic`; CREATE TABLE `cms_topic` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `category_id` bigint(20) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `create_time` datetime DEFAULT NULL, `start_time` datetime DEFAULT NULL, `end_time` datetime DEFAULT NULL, `attend_count` int(11) DEFAULT NULL COMMENT '参与人数', `attention_count` int(11) DEFAULT NULL COMMENT '关注人数', `read_count` int(11) DEFAULT NULL, `award_name` varchar(100) DEFAULT NULL COMMENT '奖品名称', `attend_type` varchar(100) DEFAULT NULL COMMENT '参与方式', `content` text COMMENT '话题内容', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='话题表'; -- ---------------------------- -- Records of cms_topic -- ---------------------------- -- ---------------------------- -- Table structure for cms_topic_category -- ---------------------------- DROP TABLE IF EXISTS `cms_topic_category`; CREATE TABLE `cms_topic_category` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `icon` varchar(500) DEFAULT NULL COMMENT '分类图标', `subject_count` int(11) DEFAULT NULL COMMENT '专题数量', `show_status` int(2) DEFAULT NULL, `sort` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='话题分类表'; -- ---------------------------- -- Records of cms_topic_category -- ---------------------------- -- ---------------------------- -- Table structure for cms_topic_comment -- ---------------------------- DROP TABLE IF EXISTS `cms_topic_comment`; CREATE TABLE `cms_topic_comment` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `member_nick_name` varchar(255) DEFAULT NULL, `topic_id` bigint(20) DEFAULT NULL, `member_icon` varchar(255) DEFAULT NULL, `content` varchar(1000) DEFAULT NULL, `create_time` datetime DEFAULT NULL, `show_status` int(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='专题评论表'; -- ---------------------------- -- Records of cms_topic_comment -- ---------------------------- -- ---------------------------- -- Table structure for oms_cart_item -- ---------------------------- DROP TABLE IF EXISTS `oms_cart_item`; CREATE TABLE `oms_cart_item` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `product_id` bigint(20) DEFAULT NULL, `product_sku_id` bigint(20) DEFAULT NULL, `member_id` bigint(20) DEFAULT NULL, `quantity` int(11) DEFAULT NULL COMMENT '购买数量', `price` decimal(10,2) DEFAULT NULL COMMENT '添加到购物车的价格', `sp1` varchar(200) DEFAULT NULL COMMENT '销售属性1', `sp2` varchar(200) DEFAULT NULL COMMENT '销售属性2', `sp3` varchar(200) DEFAULT NULL COMMENT '销售属性3', `product_pic` varchar(1000) DEFAULT NULL COMMENT '商品主图', `product_name` varchar(500) DEFAULT NULL COMMENT '商品名称', `product_sub_title` varchar(500) DEFAULT NULL COMMENT '商品副标题(卖点)', `product_sku_code` varchar(200) DEFAULT NULL COMMENT '商品sku条码', `member_nickname` varchar(500) DEFAULT NULL COMMENT '会员昵称', `create_date` datetime DEFAULT NULL COMMENT '创建时间', `modify_date` datetime DEFAULT NULL COMMENT '修改时间', `delete_status` int(1) DEFAULT '0' COMMENT '是否删除', `product_category_id` bigint(20) DEFAULT NULL COMMENT '商品分类', `product_brand` varchar(200) DEFAULT NULL, `product_sn` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='购物车表'; -- ---------------------------- -- Records of oms_cart_item -- ---------------------------- INSERT INTO `oms_cart_item` VALUES ('12', '26', '90', '1', '1', '3788.00', '金色', '16G', null, null, '华为 HUAWEI P20', 'AI智慧全面屏 6GB +64GB 亮黑色 全网通版 移动联通电信4G手机 双卡双待手机 双卡双待', '201806070026001', 'windir', '2018-08-27 16:53:44', null, '0', '19', null, null); INSERT INTO `oms_cart_item` VALUES ('13', '27', '98', '1', '3', '2699.00', '黑色', '32G', null, null, '小米8', '骁龙845处理器,红外人脸解锁,AI变焦双摄,AI语音助手小米6X低至1299,点击抢购', '201808270027001', 'windir', '2018-08-27 17:11:53', null, '0', '19', null, null); INSERT INTO `oms_cart_item` VALUES ('14', '28', '102', '1', '1', '649.00', '金色', '16G', null, null, '红米5A', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028001', 'windir', '2018-08-27 17:18:02', null, '0', '19', null, null); INSERT INTO `oms_cart_item` VALUES ('15', '28', '103', '1', '1', '699.00', '金色', '32G', null, null, '红米5A', '8天超长待机,137g轻巧机身,高通骁龙处理器小米6X低至1299,点击抢购', '201808270028001', 'windir', '2018-08-28 10:22:45', null, '0', '19', null, null); INSERT INTO `oms_cart_item` VALUES ('16', '29', '106', '1', '1', '5499.00', '金色', '32G', null, null, 'Apple iPhone 8 Plus', '【限时限量抢购】Apple产品年中狂欢节,好物尽享,美在智慧!速来 >> 勾选[保障服务][原厂保2年],获得AppleCare+全方位服务计划,原厂延保售后无忧。', '201808270029001', 'windir', '2018-08-28 10:50:50', null, '0', '19', null, null); -- ---------------------------- -- Table structure for oms_company_address -- ---------------------------- DROP TABLE IF EXISTS `oms_company_address`; CREATE TABLE `oms_company_address` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `address_name` varchar(200) DEFAULT NULL COMMENT '地址名称', `send_status` int(1) DEFAULT NULL COMMENT '默认发货地址:0->否;1->是', `receive_status` int(1) DEFAULT NULL COMMENT '是否默认收货地址:0->否;1->是', `name` varchar(64) DEFAULT NULL COMMENT '收发货人姓名', `phone` varchar(64) DEFAULT NULL COMMENT '收货人电话', `province` varchar(64) DEFAULT NULL COMMENT '省/直辖市', `city` varchar(64) DEFAULT NULL COMMENT '市', `region` varchar(64) DEFAULT NULL COMMENT '区', `detail_address` varchar(200) DEFAULT NULL COMMENT '详细地址', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='公司收发货地址表'; -- ---------------------------- -- Records of oms_company_address -- ---------------------------- INSERT INTO `oms_company_address` VALUES ('1', '深圳发货点', '1', '1', '大梨', '18000000000', '广东省', '深圳市', '南山区', '科兴科学园'); INSERT INTO `oms_company_address` VALUES ('2', '北京发货点', '0', '0', '大梨', '18000000000', '北京市', null, '南山区', '科兴科学园'); INSERT INTO `oms_company_address` VALUES ('3', '南京发货点', '0', '0', '大梨', '18000000000', '江苏省', '南京市', '南山区', '科兴科学园'); -- ---------------------------- -- Table structure for oms_order -- ---------------------------- DROP TABLE IF EXISTS `oms_order`; CREATE TABLE `oms_order` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '订单id', `member_id` bigint(20) NOT NULL, `coupon_id` bigint(20) DEFAULT NULL, `order_sn` varchar(64) DEFAULT NULL COMMENT '订单编号', `create_time` datetime DEFAULT NULL COMMENT '提交时间', `member_username` varchar(64) DEFAULT NULL COMMENT '用户帐号', `total_amount` decimal(10,2) DEFAULT NULL COMMENT '订单总金额', `pay_amount` decimal(10,2) DEFAULT NULL COMMENT '应付金额(实际支付金额)', `freight_amount` decimal(10,2) DEFAULT NULL COMMENT '运费金额', `promotion_amount` decimal(10,2) DEFAULT NULL COMMENT '促销优化金额(促销价、满减、阶梯价)', `integration_amount` decimal(10,2) DEFAULT NULL COMMENT '积分抵扣金额', `coupon_amount` decimal(10,2) DEFAULT NULL COMMENT '优惠券抵扣金额', `discount_amount` decimal(10,2) DEFAULT NULL COMMENT '管理员后台调整订单使用的折扣金额', `pay_type` int(1) DEFAULT NULL COMMENT '支付方式:0->未支付;1->支付宝;2->微信', `source_type` int(1) DEFAULT NULL COMMENT '订单来源:0->PC订单;1->app订单', `status` int(1) DEFAULT NULL COMMENT '订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单', `order_type` int(1) DEFAULT NULL COMMENT '订单类型:0->正常订单;1->秒杀订单', `delivery_company` varchar(64) DEFAULT NULL COMMENT '物流公司(配送方式)', `delivery_sn` varchar(64) DEFAULT NULL COMMENT '物流单号', `auto_confirm_day` int(11) DEFAULT NULL COMMENT '自动确认时间(天)', `integration` int(11) DEFAULT NULL COMMENT '可以获得的积分', `growth` int(11) DEFAULT NULL COMMENT '可以活动的成长值', `promotion_info` varchar(100) DEFAULT NULL COMMENT '活动信息', `bill_type` int(1) DEFAULT NULL COMMENT '发票类型:0->不开发票;1->电子发票;2->纸质发票', `bill_header` varchar(200) DEFAULT NULL COMMENT '发票抬头', `bill_content` varchar(200) DEFAULT NULL COMMENT '发票内容', `bill_receiver_phone` varchar(32) DEFAULT NULL COMMENT '收票人电话', `bill_receiver_email` varchar(64) DEFAULT NULL COMMENT '收票人邮箱', `receiver_name` varchar(100) NOT NULL COMMENT '收货人姓名', `receiver_phone` varchar(32) NOT NULL COMMENT '收货人电话', `receiver_post_code` varchar(32) DEFAULT NULL COMMENT '收货人邮编', `receiver_province` varchar(32) DEFAULT NULL COMMENT '省份/直辖市', `receiver_city` varchar(32) DEFAULT NULL COMMENT '城市', `receiver_region` varchar(32) DEFAULT NULL COMMENT '区', `receiver_detail_address` varchar(200) DEFAULT NULL COMMENT '详细地址', `note` varchar(500) DEFAULT NULL COMMENT '订单备注', `confirm_status` int(1) DEFAULT NULL COMMENT '确认收货状态:0->未确认;1->已确认', `delete_status` int(1) NOT NULL DEFAULT '0' COMMENT '删除状态:0->未删除;1->已删除', `use_integration` int(11) DEFAULT NULL COMMENT '下单时使用的积分', `payment_time` datetime DEFAULT NULL COMMENT '支付时间', `delivery_time` datetime DEFAULT NULL COMMENT '发货时间', `receive_time` datetime DEFAULT NULL COMMENT '确认收货时间', `comment_time` datetime DEFAULT NULL COMMENT '评价时间', `modify_time` datetime DEFAULT NULL COMMENT '修改时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='订单表'; -- ---------------------------- -- Records of oms_order -- ---------------------------- INSERT INTO `oms_order` VALUES ('12', '1', '2', '201809150101000001', '2018-09-15 12:24:27', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '0', '1', '4', '0', '顺丰快递', '201707196398345', null, '0', null, '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, '2018-10-12 14:01:28', null, null, null); INSERT INTO `oms_order` VALUES ('13', '1', '2', '201809150102000002', '2018-09-15 14:24:29', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '1', '1', '1', '0', '顺丰快递', 'xx', null, '0', null, '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', '1000', null, '2018-10-16 14:42:17', null, null, null); INSERT INTO `oms_order` VALUES ('14', '1', '2', '201809130101000001', '2018-09-13 16:57:40', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '2', '1', '2', '0', null, null, null, '18682', '18682', '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, null, null, null, null); INSERT INTO `oms_order` VALUES ('15', '1', '2', '201809130102000002', '2018-09-13 17:03:00', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '1', '1', '3', '0', null, null, null, '18682', '18682', '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, null, null, null, null); INSERT INTO `oms_order` VALUES ('16', '1', '2', '201809140101000001', '2018-09-14 16:16:16', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '2', '1', '4', '0', null, null, null, '18682', '18682', '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, null, null, null, null); INSERT INTO `oms_order` VALUES ('17', '1', '2', '201809150101000003', '2018-09-15 12:24:27', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '0', '1', '4', '0', '顺丰快递', '201707196398345', null, '0', null, '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, '2018-10-12 14:01:28', null, null, null); INSERT INTO `oms_order` VALUES ('18', '1', '2', '201809150102000004', '2018-09-15 14:24:29', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '1', '1', '1', '0', '圆通快递', 'xx', null, '0', null, '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', '1000', null, '2018-10-16 14:42:17', null, null, null); INSERT INTO `oms_order` VALUES ('19', '1', '2', '201809130101000003', '2018-09-13 16:57:40', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '2', '1', '2', '0', null, null, null, '18682', '18682', '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, null, null, null, null); INSERT INTO `oms_order` VALUES ('20', '1', '2', '201809130102000004', '2018-09-13 17:03:00', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '1', '1', '3', '0', null, null, null, '18682', '18682', '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, null, null, null, null); INSERT INTO `oms_order` VALUES ('21', '1', '2', '201809140101000002', '2018-09-14 16:16:16', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '2', '1', '4', '0', null, null, null, '18682', '18682', '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, null, null, null, null); INSERT INTO `oms_order` VALUES ('22', '1', '2', '201809150101000005', '2018-09-15 12:24:27', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '0', '1', '4', '0', '顺丰快递', '201707196398345', null, '0', null, '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, '2018-10-12 14:01:28', null, null, null); INSERT INTO `oms_order` VALUES ('23', '1', '2', '201809150102000006', '2018-09-15 14:24:29', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '1', '1', '1', '0', '顺丰快递', 'xxx', null, '0', null, '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', '1000', null, '2018-10-16 14:41:28', null, null, null); INSERT INTO `oms_order` VALUES ('24', '1', '2', '201809130101000005', '2018-09-13 16:57:40', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '2', '1', '2', '0', null, null, null, '18682', '18682', '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, null, null, null, null); INSERT INTO `oms_order` VALUES ('25', '1', '2', '201809130102000006', '2018-09-13 17:03:00', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '1', '1', '4', '0', null, null, null, '18682', '18682', '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '0', null, null, null, null, null, null); INSERT INTO `oms_order` VALUES ('26', '1', '2', '201809140101000003', '2018-09-14 16:16:16', 'test', '18732.00', '16377.75', '0.00', '2344.25', '0.00', '10.00', null, '2', '1', '4', '0', null, null, null, '18682', '18682', '单品促销,打折优惠:满3件,打7.50折,满减优惠:满1000.00元,减120.00元,满减优惠:满1000.00元,减120.00元,无优惠', null, null, null, null, null, '大梨', '18033441849', '518000', '广东省', '深圳市', '福田区', '东晓街道', null, '0', '1', null, null, null, null, null, null); -- ---------------------------- -- Table structure for oms_order_item -- ---------------------------- DROP TABLE IF EXISTS `oms_order_item`; CREATE TABLE `oms_order_item` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `order_id` bigint(20) DEFAULT NULL COMMENT '订单id', `order_sn` varchar(64) DEFAULT NULL COMMENT '订单编号', `product_id` bigint(20) DEFAULT NULL, `product_pic` varchar(500) DEFAULT NULL, `product_name` varchar(200) DEFAULT NULL, `product_brand` varchar(200) DEFAULT NULL, `product_sn` varchar(64) DEFAULT NULL, `product_price` decimal(10,2) DEFAULT NULL COMMENT '销售价格', `product_quantity` int(11) DEFAULT NULL COMMENT '购买数量', `product_sku_id` bigint(20) DEFAULT NULL COMMENT '商品sku编号', `product_sku_code` varchar(50) DEFAULT NULL COMMENT '商品sku条码', `product_category_id` bigint(20) DEFAULT NULL COMMENT '商品分类id', `sp1` varchar(100) DEFAULT NULL COMMENT '商品的销售属性', `sp2` varchar(100) DEFAULT NULL, `sp3` varchar(100) DEFAULT NULL, `promotion_name` varchar(200) DEFAULT NULL COMMENT '商品促销名称', `promotion_amount` decimal(10,2) DEFAULT NULL COMMENT '商品促销分解金额', `coupon_amount` decimal(10,2) DEFAULT NULL COMMENT '优惠券优惠分解金额', `integration_amount` decimal(10,2) DEFAULT NULL COMMENT '积分优惠分解金额', `real_amount` decimal(10,2) DEFAULT NULL COMMENT '该商品经过优惠后的分解金额', `gift_integration` int(11) DEFAULT '0', `gift_growth` int(11) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8 COMMENT='订单中所包含的商品'; -- ---------------------------- -- Records of oms_order_item -- ---------------------------- INSERT INTO `oms_order_item` VALUES ('21', '12', '201809150101000001', '26', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', null, '3788.00', '1', '90', '201806070026001', '19', null, null, null, '单品促销', '200.00', '2.02', '0.00', '3585.98', '0', '0'); INSERT INTO `oms_order_item` VALUES ('22', '12', '201809150101000001', '27', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', null, '2699.00', '3', '98', '201808270027001', '19', null, null, null, '打折优惠:满3件,打7.50折', '674.75', '1.44', '0.00', '2022.81', '0', '0'); INSERT INTO `oms_order_item` VALUES ('23', '12', '201809150101000001', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '649.00', '1', '102', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '57.60', '0.35', '0.00', '591.05', '0', '0'); INSERT INTO `oms_order_item` VALUES ('24', '12', '201809150101000001', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '699.00', '1', '103', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '62.40', '0.37', '0.00', '636.23', '0', '0'); INSERT INTO `oms_order_item` VALUES ('25', '12', '201809150101000001', '29', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus', '苹果', null, '5499.00', '1', '106', '201808270029001', '19', null, null, null, '无优惠', '0.00', '2.94', '0.00', '5496.06', '0', '0'); INSERT INTO `oms_order_item` VALUES ('26', '13', '201809150102000002', '26', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', null, '3788.00', '1', '90', '201806070026001', '19', null, null, null, '单品促销', '200.00', '2.02', '0.00', '3585.98', '0', '0'); INSERT INTO `oms_order_item` VALUES ('27', '13', '201809150102000002', '27', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', null, '2699.00', '3', '98', '201808270027001', '19', null, null, null, '打折优惠:满3件,打7.50折', '674.75', '1.44', '0.00', '2022.81', '0', '0'); INSERT INTO `oms_order_item` VALUES ('28', '13', '201809150102000002', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '649.00', '1', '102', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '57.60', '0.35', '0.00', '591.05', '0', '0'); INSERT INTO `oms_order_item` VALUES ('29', '13', '201809150102000002', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '699.00', '1', '103', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '62.40', '0.37', '0.00', '636.23', '0', '0'); INSERT INTO `oms_order_item` VALUES ('30', '13', '201809150102000002', '29', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus', '苹果', null, '5499.00', '1', '106', '201808270029001', '19', null, null, null, '无优惠', '0.00', '2.94', '0.00', '5496.06', '0', '0'); INSERT INTO `oms_order_item` VALUES ('31', '14', '201809130101000001', '26', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', null, '3788.00', '1', '90', '201806070026001', '19', null, null, null, '单品促销', '200.00', '2.02', '0.00', '3585.98', '0', '0'); INSERT INTO `oms_order_item` VALUES ('32', '14', '201809130101000001', '27', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', null, '2699.00', '3', '98', '201808270027001', '19', null, null, null, '打折优惠:满3件,打7.50折', '674.75', '1.44', '0.00', '2022.81', '0', '0'); INSERT INTO `oms_order_item` VALUES ('33', '14', '201809130101000001', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '649.00', '1', '102', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '57.60', '0.35', '0.00', '591.05', '0', '0'); INSERT INTO `oms_order_item` VALUES ('34', '14', '201809130101000001', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '699.00', '1', '103', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '62.40', '0.37', '0.00', '636.23', '0', '0'); INSERT INTO `oms_order_item` VALUES ('35', '14', '201809130101000001', '29', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus', '苹果', null, '5499.00', '1', '106', '201808270029001', '19', null, null, null, '无优惠', '0.00', '2.94', '0.00', '5496.06', '0', '0'); INSERT INTO `oms_order_item` VALUES ('36', '15', '201809130101000001', '26', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', null, '3788.00', '1', '90', '201806070026001', '19', null, null, null, '单品促销', '200.00', '2.02', '0.00', '3585.98', '0', '0'); INSERT INTO `oms_order_item` VALUES ('37', '15', '201809130101000001', '27', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', null, '2699.00', '3', '98', '201808270027001', '19', null, null, null, '打折优惠:满3件,打7.50折', '674.75', '1.44', '0.00', '2022.81', '0', '0'); INSERT INTO `oms_order_item` VALUES ('38', '15', '201809130101000001', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '649.00', '1', '102', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '57.60', '0.35', '0.00', '591.05', '0', '0'); INSERT INTO `oms_order_item` VALUES ('39', '15', '201809130101000001', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '699.00', '1', '103', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '62.40', '0.37', '0.00', '636.23', '0', '0'); INSERT INTO `oms_order_item` VALUES ('40', '15', '201809130101000001', '29', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus', '苹果', null, '5499.00', '1', '106', '201808270029001', '19', null, null, null, '无优惠', '0.00', '2.94', '0.00', '5496.06', '0', '0'); INSERT INTO `oms_order_item` VALUES ('41', '16', '201809140101000001', '26', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', null, '3788.00', '1', '90', '201806070026001', '19', null, null, null, '单品促销', '200.00', '2.02', '0.00', '3585.98', '0', '0'); INSERT INTO `oms_order_item` VALUES ('42', '16', '201809140101000001', '27', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', null, '2699.00', '3', '98', '201808270027001', '19', null, null, null, '打折优惠:满3件,打7.50折', '674.75', '1.44', '0.00', '2022.81', '0', '0'); INSERT INTO `oms_order_item` VALUES ('43', '16', '201809140101000001', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '649.00', '1', '102', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '57.60', '0.35', '0.00', '591.05', '0', '0'); INSERT INTO `oms_order_item` VALUES ('44', '16', '201809140101000001', '28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', null, '699.00', '1', '103', '201808270028001', '19', null, null, null, '满减优惠:满1000.00元,减120.00元', '62.40', '0.37', '0.00', '636.23', '0', '0'); INSERT INTO `oms_order_item` VALUES ('45', '16', '201809140101000001', '29', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg', 'Apple iPhone 8 Plus', '苹果', null, '5499.00', '1', '106', '201808270029001', '19', null, null, null, '无优惠', '0.00', '2.94', '0.00', '5496.06', '0', '0'); -- ---------------------------- -- Table structure for oms_order_operate_history -- ---------------------------- DROP TABLE IF EXISTS `oms_order_operate_history`; CREATE TABLE `oms_order_operate_history` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `order_id` bigint(20) DEFAULT NULL COMMENT '订单id', `operate_man` varchar(100) DEFAULT NULL COMMENT '操作人:用户;系统;后台管理员', `create_time` datetime DEFAULT NULL COMMENT '操作时间', `order_status` int(1) DEFAULT NULL COMMENT '订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单', `note` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='订单操作历史记录'; -- ---------------------------- -- Records of oms_order_operate_history -- ---------------------------- INSERT INTO `oms_order_operate_history` VALUES ('5', '12', '后台管理员', '2018-10-12 14:01:29', '2', '完成发货'); INSERT INTO `oms_order_operate_history` VALUES ('6', '13', '后台管理员', '2018-10-12 14:01:29', '2', '完成发货'); INSERT INTO `oms_order_operate_history` VALUES ('7', '12', '后台管理员', '2018-10-12 14:13:10', '4', '订单关闭:买家退货'); INSERT INTO `oms_order_operate_history` VALUES ('8', '13', '后台管理员', '2018-10-12 14:13:10', '4', '订单关闭:买家退货'); INSERT INTO `oms_order_operate_history` VALUES ('9', '22', '后台管理员', '2018-10-15 16:31:48', '4', '订单关闭:xxx'); INSERT INTO `oms_order_operate_history` VALUES ('10', '22', '后台管理员', '2018-10-15 16:35:08', '4', '订单关闭:xxx'); INSERT INTO `oms_order_operate_history` VALUES ('11', '22', '后台管理员', '2018-10-15 16:35:59', '4', '订单关闭:xxx'); INSERT INTO `oms_order_operate_history` VALUES ('12', '17', '后台管理员', '2018-10-15 16:43:40', '4', '订单关闭:xxx'); INSERT INTO `oms_order_operate_history` VALUES ('13', '25', '后台管理员', '2018-10-15 16:52:14', '4', '订单关闭:xxx'); INSERT INTO `oms_order_operate_history` VALUES ('14', '26', '后台管理员', '2018-10-15 16:52:14', '4', '订单关闭:xxx'); INSERT INTO `oms_order_operate_history` VALUES ('15', '23', '后台管理员', '2018-10-16 14:41:28', '2', '完成发货'); INSERT INTO `oms_order_operate_history` VALUES ('16', '13', '后台管理员', '2018-10-16 14:42:17', '2', '完成发货'); INSERT INTO `oms_order_operate_history` VALUES ('17', '18', '后台管理员', '2018-10-16 14:42:17', '2', '完成发货'); -- ---------------------------- -- Table structure for oms_order_return_apply -- ---------------------------- DROP TABLE IF EXISTS `oms_order_return_apply`; CREATE TABLE `oms_order_return_apply` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `order_id` bigint(20) DEFAULT NULL COMMENT '订单id', `company_address_id` bigint(20) DEFAULT NULL COMMENT '收货地址表id', `product_id` bigint(20) DEFAULT NULL COMMENT '退货商品id', `order_sn` varchar(64) DEFAULT NULL COMMENT '订单编号', `create_time` datetime DEFAULT NULL COMMENT '申请时间', `member_username` varchar(64) DEFAULT NULL COMMENT '会员用户名', `return_amount` decimal(10,2) DEFAULT NULL COMMENT '退款金额', `return_name` varchar(100) DEFAULT NULL COMMENT '退货人姓名', `return_phone` varchar(100) DEFAULT NULL COMMENT '退货人电话', `status` int(1) DEFAULT NULL COMMENT '申请状态:0->待处理;1->退货中;2->已完成;3->已拒绝', `handle_time` datetime DEFAULT NULL COMMENT '处理时间', `product_pic` varchar(500) DEFAULT NULL COMMENT '商品图片', `product_name` varchar(200) DEFAULT NULL COMMENT '商品名称', `product_brand` varchar(200) DEFAULT NULL COMMENT '商品品牌', `product_attr` varchar(500) DEFAULT NULL COMMENT '商品销售属性:颜色:红色;尺码:xl;', `product_count` int(11) DEFAULT NULL COMMENT '退货数量', `product_price` decimal(10,2) DEFAULT NULL COMMENT '商品单价', `product_real_price` decimal(10,2) DEFAULT NULL COMMENT '商品实际支付单价', `reason` varchar(200) DEFAULT NULL COMMENT '原因', `description` varchar(500) DEFAULT NULL COMMENT '描述', `proof_pics` varchar(1000) DEFAULT NULL COMMENT '凭证图片,以逗号隔开', `handle_note` varchar(500) DEFAULT NULL COMMENT '处理备注', `handle_man` varchar(100) DEFAULT NULL COMMENT '处理人员', `receive_man` varchar(100) DEFAULT NULL COMMENT '收货人', `receive_time` datetime DEFAULT NULL COMMENT '收货时间', `receive_note` varchar(500) DEFAULT NULL COMMENT '收货备注', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='订单退货申请'; -- ---------------------------- -- Records of oms_order_return_apply -- ---------------------------- INSERT INTO `oms_order_return_apply` VALUES ('3', '12', null, '26', '201809150101000001', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg,http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('4', '12', '2', '27', '201809150101000001', '2018-10-17 14:40:21', 'test', '3585.98', '大梨', '18000000000', '1', '2018-10-18 13:54:10', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', '已经处理了', 'admin', null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('5', '12', '3', '28', '201809150101000001', '2018-10-17 14:44:18', 'test', '3585.98', '大梨', '18000000000', '2', '2018-10-18 13:55:28', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', '已经处理了', 'admin', 'admin', '2018-10-18 13:55:58', '已经处理了'); INSERT INTO `oms_order_return_apply` VALUES ('8', '13', null, '28', '201809150102000002', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '3', '2018-10-18 13:57:12', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', '理由不够充分', 'admin', null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('9', '14', '2', '26', '201809130101000001', '2018-10-17 14:34:57', 'test', '3500.00', '大梨', '18000000000', '2', '2018-10-24 15:44:56', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', '呵呵', 'admin', 'admin', '2018-10-24 15:46:35', '收货了'); INSERT INTO `oms_order_return_apply` VALUES ('10', '14', null, '27', '201809130101000001', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '3', '2018-10-24 15:46:57', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', '就是不退', 'admin', null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('11', '14', '2', '28', '201809130101000001', '2018-10-17 14:44:18', 'test', '591.05', '大梨', '18000000000', '1', '2018-10-24 17:09:04', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', '可以退款', 'admin', null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('12', '15', '3', '26', '201809130102000002', '2018-10-17 14:34:57', 'test', '3500.00', '大梨', '18000000000', '2', '2018-10-24 17:22:54', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', '退货了', 'admin', 'admin', '2018-10-24 17:23:06', '收货了'); INSERT INTO `oms_order_return_apply` VALUES ('13', '15', null, '27', '201809130102000002', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '3', '2018-10-24 17:23:30', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', '无法退货', 'admin', null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('15', '16', null, '26', '201809140101000001', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('16', '16', null, '27', '201809140101000001', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('17', '16', null, '28', '201809140101000001', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('18', '17', null, '26', '201809150101000003', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('19', '17', null, '27', '201809150101000003', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('20', '17', null, '28', '201809150101000003', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('21', '18', null, '26', '201809150102000004', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('22', '18', null, '27', '201809150102000004', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('23', '18', null, '28', '201809150102000004', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('24', '19', null, '26', '201809130101000003', '2018-10-17 14:34:57', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/5ac1bf58Ndefaac16.jpg', '华为 HUAWEI P20', '华为', '颜色:金色;内存:16G', '1', '3788.00', '3585.98', '质量问题', '老是卡', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('25', '19', null, '27', '201809130101000003', '2018-10-17 14:40:21', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/xiaomi.jpg', '小米8', '小米', '颜色:黑色;内存:32G', '1', '2699.00', '2022.81', '质量问题', '不够高端', '', null, null, null, null, null); INSERT INTO `oms_order_return_apply` VALUES ('26', '19', null, '28', '201809130101000003', '2018-10-17 14:44:18', 'test', null, '大梨', '18000000000', '0', null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5a9d248cN071f4959.jpg', '红米5A', '小米', '颜色:金色;内存:16G', '1', '649.00', '591.05', '质量问题', '颜色太土', '', null, null, null, null, null); -- ---------------------------- -- Table structure for oms_order_return_reason -- ---------------------------- DROP TABLE IF EXISTS `oms_order_return_reason`; CREATE TABLE `oms_order_return_reason` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL COMMENT '退货类型', `sort` int(11) DEFAULT NULL, `status` int(1) DEFAULT NULL COMMENT '状态:0->不启用;1->启用', `create_time` datetime DEFAULT NULL COMMENT '添加时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='退货原因表'; -- ---------------------------- -- Records of oms_order_return_reason -- ---------------------------- INSERT INTO `oms_order_return_reason` VALUES ('1', '质量问题', '1', '0', '2018-10-17 10:00:45'); INSERT INTO `oms_order_return_reason` VALUES ('2', '尺码太大', '1', '1', '2018-10-17 10:01:03'); INSERT INTO `oms_order_return_reason` VALUES ('3', '颜色不喜欢', '1', '1', '2018-10-17 10:01:13'); INSERT INTO `oms_order_return_reason` VALUES ('4', '7天无理由退货', '1', '1', '2018-10-17 10:01:47'); INSERT INTO `oms_order_return_reason` VALUES ('5', '价格问题', '1', '0', '2018-10-17 10:01:57'); INSERT INTO `oms_order_return_reason` VALUES ('12', '发票问题', '0', '1', '2018-10-19 16:28:36'); INSERT INTO `oms_order_return_reason` VALUES ('13', '其他问题', '0', '1', '2018-10-19 16:28:51'); INSERT INTO `oms_order_return_reason` VALUES ('14', '物流问题', '0', '1', '2018-10-19 16:29:01'); INSERT INTO `oms_order_return_reason` VALUES ('15', '售后问题', '0', '1', '2018-10-19 16:29:11'); -- ---------------------------- -- Table structure for oms_order_setting -- ---------------------------- DROP TABLE IF EXISTS `oms_order_setting`; CREATE TABLE `oms_order_setting` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `flash_order_overtime` int(11) DEFAULT NULL COMMENT '秒杀订单超时关闭时间(分)', `normal_order_overtime` int(11) DEFAULT NULL COMMENT '正常订单超时时间(分)', `confirm_overtime` int(11) DEFAULT NULL COMMENT '发货后自动确认收货时间(天)', `finish_overtime` int(11) DEFAULT NULL COMMENT '自动完成交易时间,不能申请售后(天)', `comment_overtime` int(11) DEFAULT NULL COMMENT '订单完成后自动好评时间(天)', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='订单设置表'; -- ---------------------------- -- Records of oms_order_setting -- ---------------------------- INSERT INTO `oms_order_setting` VALUES ('1', '60', '120', '15', '7', '7'); -- ---------------------------- -- Table structure for pms_album -- ---------------------------- DROP TABLE IF EXISTS `pms_album`; CREATE TABLE `pms_album` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(64) DEFAULT NULL, `cover_pic` varchar(1000) DEFAULT NULL, `pic_count` int(11) DEFAULT NULL, `sort` int(11) DEFAULT NULL, `description` varchar(1000) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='相册表'; -- ---------------------------- -- Records of pms_album -- ---------------------------- -- ---------------------------- -- Table structure for pms_album_pic -- ---------------------------- DROP TABLE IF EXISTS `pms_album_pic`; CREATE TABLE `pms_album_pic` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `album_id` bigint(20) DEFAULT NULL, `pic` varchar(1000) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='画册图片表'; -- ---------------------------- -- Records of pms_album_pic -- ---------------------------- -- ---------------------------- -- Table structure for pms_brand -- ---------------------------- DROP TABLE IF EXISTS `pms_brand`; CREATE TABLE `pms_brand` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(64) DEFAULT NULL, `first_letter` varchar(8) DEFAULT NULL COMMENT '首字母', `sort` int(11) DEFAULT NULL, `factory_status` int(1) DEFAULT NULL COMMENT '是否为品牌制造商:0->不是;1->是', `show_status` int(1) DEFAULT NULL, `product_count` int(11) DEFAULT NULL COMMENT '产品数量', `product_comment_count` int(11) DEFAULT NULL COMMENT '产品评论数量', `logo` varchar(255) DEFAULT NULL COMMENT '品牌logo', `big_pic` varchar(255) DEFAULT NULL COMMENT '专区大图', `brand_story` text COMMENT '品牌故事', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8 COMMENT='品牌表'; -- ---------------------------- -- Records of pms_brand -- ---------------------------- INSERT INTO `pms_brand` VALUES ('1', '万和', 'W', '0', '1', '1', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg(5).jpg', '', 'Victoria\'s Secret的故事'); INSERT INTO `pms_brand` VALUES ('2', '三星', 'S', '100', '1', '1', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (1).jpg', null, '三星的故事'); INSERT INTO `pms_brand` VALUES ('3', '华为', 'H', '100', '1', '0', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (2).jpg', null, 'Victoria\'s Secret的故事'); INSERT INTO `pms_brand` VALUES ('4', '格力', 'G', '30', '1', '0', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (3).jpg', null, 'Victoria\'s Secret的故事'); INSERT INTO `pms_brand` VALUES ('5', '方太', 'F', '20', '1', '0', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg (4).jpg', null, 'Victoria\'s Secret的故事'); INSERT INTO `pms_brand` VALUES ('6', '小米', 'M', '500', '1', '1', '100', '100', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/5a912944N474afb7a.png', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/5afd7778Nf7800b75.jpg', '小米手机的故事'); INSERT INTO `pms_brand` VALUES ('21', 'OPPO', 'O', '0', '1', '1', null, null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg(6).jpg', '', 'string'); INSERT INTO `pms_brand` VALUES ('49', '七匹狼', 'S', '200', '1', '0', null, null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180518/1522738681.jpg', null, 'BOOB的故事'); INSERT INTO `pms_brand` VALUES ('50', '海澜之家', 'H', '200', '1', '1', null, null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/LOGO1024.png', '', '海澜之家的故事'); INSERT INTO `pms_brand` VALUES ('51', '苹果', 'A', '200', '1', '1', null, null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg', null, '苹果的故事'); INSERT INTO `pms_brand` VALUES ('58', 'NIKE', 'N', '0', '1', '1', null, null, 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/timg (51).jpg', '', 'NIKE的故事'); -- ---------------------------- -- Table structure for pms_comment -- ---------------------------- DROP TABLE IF EXISTS `pms_comment`; CREATE TABLE `pms_comment` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `product_id` bigint(20) DEFAULT NULL, `member_nick_name` varchar(255) DEFAULT NULL, `product_name` varchar(255) DEFAULT NULL, `star` int(3) DEFAULT NULL COMMENT '评价星数:0->5', `member_ip` varchar(64) DEFAULT NULL COMMENT '评价的ip', `create_time` datetime DEFAULT NULL, `show_status` int(1) DEFAULT NULL, `product_attribute` varchar(255) DEFAULT NULL COMMENT '购买时的商品属性', `collect_couont` int(11) DEFAULT NULL, `read_count` int(11) DEFAULT NULL, `content` text, `pics` varchar(1000) DEFAULT NULL COMMENT '上传图片地址,以逗号隔开', `member_icon` varchar(255) DEFAULT NULL COMMENT '评论用户头像', `replay_count` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品评价表'; -- ---------------------------- -- Records of pms_comment -- ---------------------------- -- ---------------------------- -- Table structure for pms_comment_replay -- ---------------------------- DROP TABLE IF EXISTS `pms_comment_replay`; CREATE TABLE `pms_comment_replay` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `comment_id` bigint(20) DEFAULT NULL, `member_nick_name` varchar(255) DEFAULT NULL, `member_icon` varchar(255) DEFAULT NULL, `content` varchar(1000) DEFAULT NULL, `create_time` datetime DEFAULT NULL, `type` int(1) DEFAULT NULL COMMENT '评论人员类型;0->会员;1->管理员', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品评价回复表'; -- ---------------------------- -- Records of pms_comment_replay -- ---------------------------- -- ---------------------------- -- Table structure for pms_feight_template -- ---------------------------- DROP TABLE IF EXISTS `pms_feight_template`; CREATE TABLE `pms_feight_template` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(64) DEFAULT NULL, `charge_type` int(1) DEFAULT NULL COMMENT '计费类型:0->按重量;1->按件数', `first_weight` decimal(10,2) DEFAULT NULL COMMENT '首重kg', `first_fee` decimal(10,2) DEFAULT NULL COMMENT '首费(元)', `continue_weight` decimal(10,2) DEFAULT NULL, `continme_fee` decimal(10,2) DEFAULT NULL, `dest` varchar(255) DEFAULT NULL COMMENT '目的地(省、市)', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='运费模版'; -- ---------------------------- -- Records of pms_feight_template -- ---------------------------- -- ---------------------------- -- Table structure for pms_member_price -- ---------------------------- DROP TABLE IF EXISTS `pms_member_price`; CREATE TABLE `pms_member_price` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `product_id` bigint(20) DEFAULT NULL, `member_level_id` bigint(20) DEFAULT NULL, `member_price` decimal(10,2) DEFAULT NULL COMMENT '会员价格', `member_level_name` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=utf8 COMMENT='商品会员价格表'; -- ---------------------------- -- Records of pms_member_price -- ---------------------------- INSERT INTO `pms_member_price` VALUES ('26', '7', '1', '500.00', null); INSERT INTO `pms_member_price` VALUES ('27', '8', '1', '500.00', null); INSERT INTO `pms_member_price` VALUES ('28', '9', '1', '500.00', null); INSERT INTO `pms_member_price` VALUES ('29', '10', '1', '500.00', null); INSERT INTO `pms_member_price` VALUES ('30', '11', '1', '500.00', null); INSERT INTO `pms_member_price` VALUES ('31', '12', '1', '500.00', null); INSERT INTO `pms_member_price` VALUES ('32', '13', '1', '500.00', null); INSERT INTO `pms_member_price` VALUES ('33', '14', '1', '500.00', null); INSERT INTO `pms_member_price` VALUES ('37', '18', '1', '500.00', null); INSERT INTO `pms_member_price` VALUES ('44', '7', '2', '480.00', null); INSERT INTO `pms_member_price` VALUES ('45', '7', '3', '450.00', null); INSERT INTO `pms_member_price` VALUES ('52', '22', '1', null, null); INSERT INTO `pms_member_price` VALUES ('53', '22', '2', null, null); INSERT INTO `pms_member_price` VALUES ('54', '22', '3', null, null); INSERT INTO `pms_member_price` VALUES ('58', '24', '1', null, null); INSERT INTO `pms_member_price` VALUES ('59', '24', '2', null, null); INSERT INTO `pms_member_price` VALUES ('60', '24', '3', null, null); INSERT INTO `pms_member_price` VALUES ('112', '23', '1', '88.00', '黄金会员'); INSERT INTO `pms_member_price` VALUES ('113', '23', '2', '88.00', '白金会员'); INSERT INTO `pms_member_price` VALUES ('114', '23', '3', '66.00', '钻石会员'); INSERT INTO `pms_member_price` VALUES ('142', '31', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('143', '31', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('144', '31', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('148', '32', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('149', '32', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('150', '32', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('154', '33', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('155', '33', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('156', '33', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('169', '36', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('170', '36', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('171', '36', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('172', '35', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('173', '35', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('174', '35', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('175', '34', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('176', '34', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('177', '34', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('178', '30', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('179', '30', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('180', '30', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('186', '26', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('187', '26', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('188', '26', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('192', '27', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('193', '27', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('194', '27', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('195', '28', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('196', '28', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('197', '28', '3', null, '钻石会员'); INSERT INTO `pms_member_price` VALUES ('198', '29', '1', null, '黄金会员'); INSERT INTO `pms_member_price` VALUES ('199', '29', '2', null, '白金会员'); INSERT INTO `pms_member_price` VALUES ('200', '29', '3', null, '钻石会员'); -- ---------------------------- -- Table structure for pms_product -- ---------------------------- DROP TABLE IF EXISTS `pms_product`; CREATE TABLE `pms_product` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `brand_id` bigint(20) DEFAULT NULL, `product_category_id` bigint(20) DEFAULT NULL, `feight_template_id` bigint(20) DEFAULT NULL, `product_attribute_category_id` bigint(20) DEFAULT NULL, `flash_promotion_id` int(11) DEFAULT NULL COMMENT '限时购id', `name` varchar(64) NOT NULL, `pic` varchar(255) DEFAULT NULL, `product_sn` varchar(64) NOT NULL COMMENT '货号', `delete_status` int(1) DEFAULT NULL COMMENT '删除状态:0->未删除;1->已删除', `publish_status` int(1) DEFAULT NULL COMMENT '上架状态:0->下架;1->上架', `new_status` int(1) DEFAULT NULL COMMENT '新品状态:0->不是新品;1->新品', `recommand_status` int(1) DEFAULT NULL COMMENT '推荐状态;0->不推荐;1->推荐', `verify_status` int(1) DEFAULT NULL COMMENT '审核状态:0->未审核;1->审核通过', `sort` int(11) DEFAULT NULL COMMENT '排序', `sale` int(11) DEFAULT NULL COMMENT '销量', `price` decimal(10,2) DEFAULT NULL, `promotion_price` decimal(10,2) DEFAULT NULL COMMENT '促销价格', `gift_growth` int(11) DEFAULT '0' COMMENT '赠送的成长值', `gift_point` int(11) DEFAULT '0' COMMENT '赠送的积分', `use_point_limit` int(11) DEFAULT NULL COMMENT '限制使用的积分数', `sub_title` varchar(255) DEFAULT NULL COMMENT '副标题', `description` text COMMENT '商品描述', `original_price` decimal(10,2) DEFAULT NULL COMMENT '市场价', `stock` int(11) DEFAULT NULL COMMENT '库存', `low_stock` int(11) DEFAULT NULL COMMENT '库存预警值', `unit` varchar(16) DEFAULT NULL COMMENT '单位', `weight` decimal(10,2) DEFAULT NULL COMMENT '商品重量,默认为克', `preview_status` int(1) DEFAULT NULL COMMENT '是否为预告商品:0->不是;1->是', `service_ids` varchar(64) DEFAULT NULL COMMENT '以逗号分割的产品服务:1->无忧退货;2->快速退款;3->免费包邮', `keywords` varchar(255) DEFAULT NULL, `note` varchar(255) DEFAULT NULL, `album_pics` varchar(255) DEFAULT NULL COMMENT '画册图片,连产品图片限制为5张,以逗号分割', `detail_title` varchar(255) DEFAULT NULL, `detail_desc` text, `detail_html` text COMMENT '产品详情网页内容', `detail_mobile_html` text COMMENT '移动端网页详情', `flash_promotion_price` decimal(10,2) DEFAULT NULL COMMENT '限时购价格', `flash_promotion_count` int(11) DEFAULT NULL COMMENT '限时购数量', `flash_promotion_sort` int(11) DEFAULT NULL COMMENT '限时购排序', `promotion_start_time` datetime DEFAULT NULL COMMENT '促销开始时间', `promotion_end_time` datetime DEFAULT NULL COMMENT '促销结束时间', `promotion_per_limit` int(11) DEFAULT NULL COMMENT '活动限购数量', `promotion_type` int(1) DEFAULT NULL COMMENT '促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格', `brand_name` varchar(255) DEFAULT NULL COMMENT '品牌名称', `product_category_name` varchar(255) DEFAULT NULL COMMENT '商品分类名称', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COMMENT='商品信息'; -- ---------------------------- -- Records of pms_product -- ---------------------------- INSERT INTO `pms_product` VALUES ('1', '49', '7', '0', '0', '0', '银色星芒刺绣网纱底裤', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '1', '1', '1', '1', '100', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, null, null, null, '0', '七匹狼', '外套'); INSERT INTO `pms_product` VALUES ('2', '49', '7', '0', '0', '0', '银色星芒刺绣网纱底裤2', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86578', '1', '1', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤2', '银色星芒刺绣网纱底裤', null, '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '
银色星芒刺绣网纱底裤
', '银色星芒刺绣网纱底裤
', null, null, null, null, null, null, '0', '七匹狼', '外套'); INSERT INTO `pms_product` VALUES ('3', '1', '7', '0', '0', '0', '银色星芒刺绣网纱底裤3', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86579', '1', '1', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤3', '银色星芒刺绣网纱底裤', null, '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, null, null, null, '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('4', '1', '7', '0', '0', '0', '银色星芒刺绣网纱底裤4', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86580', '1', '1', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤4', '银色星芒刺绣网纱底裤', null, '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, null, null, null, '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('5', '1', '7', '0', '0', '0', '银色星芒刺绣网纱底裤5', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86581', '1', '0', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤5', '银色星芒刺绣网纱底裤', null, '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, null, null, null, '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('6', '1', '7', '0', '0', '0', '银色星芒刺绣网纱底裤6', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86582', '1', '1', '1', '1', '1', '1', '0', '100.00', null, '0', '100', null, '111', '111', '120.00', '100', '20', '件', '1000.00', '0', null, '银色星芒刺绣网纱底裤6', '银色星芒刺绣网纱底裤', null, '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', '银色星芒刺绣网纱底裤', null, null, null, null, null, null, '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('7', '1', '7', '0', '1', '0', '女式超柔软拉毛运动开衫', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '0', '0', '0', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '0.00', '0', '0', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('8', '1', '7', '0', '1', '0', '女式超柔软拉毛运动开衫1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '0', '0', '0', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '0.00', '0', '0', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('9', '1', '7', '0', '1', '0', '女式超柔软拉毛运动开衫1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '0', '0', '0', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '0.00', '0', '0', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('10', '1', '7', '0', '1', '0', '女式超柔软拉毛运动开衫1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '0', '0', '0', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '0.00', '0', '0', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('11', '1', '7', '0', '1', '0', '女式超柔软拉毛运动开衫1', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '1', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '0.00', '0', '0', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('12', '1', '7', '0', '1', '0', '女式超柔软拉毛运动开衫2', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '1', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '0.00', '0', '0', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('13', '1', '7', '0', '1', '0', '女式超柔软拉毛运动开衫3', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '1', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '0.00', '0', '0', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('14', '1', '7', '0', '1', '0', '女式超柔软拉毛运动开衫3', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '0', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '0.00', '0', '0', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('18', '1', '7', '0', '1', '0', '女式超柔软拉毛运动开衫3', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180522/web.png', 'No86577', '1', '0', '0', '1', '0', '0', '0', '249.00', '0.00', '0', '100', '0', '匠心剪裁,垂感质地', '匠心剪裁,垂感质地', '299.00', '100', '0', '件', '0.00', '0', 'string', '女式超柔软拉毛运动开衫', 'string', 'string', 'string', 'string', 'string', 'string', '0.00', '0', '0', '2018-04-26 10:41:03', '2018-04-26 10:41:03', '0', '0', '万和', '外套'); INSERT INTO `pms_product` VALUES ('22', '6', '7', '0', '1', '0', 'test', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', '', '1', '1', '0', '0', '0', '0', '0', '0.00', null, '0', '0', '0', 'test', '', '0.00', '0', '0', '', '0.00', '1', '1,2', '', '', '', '', '', '', '', '0.00', '0', '0', null, null, '0', '0', '小米', '外套'); INSERT INTO `pms_product` VALUES ('23', '6', '19', '0', '1', '0', '毛衫测试', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', 'NO.1098', '1', '1', '1', '1', '0', '0', '0', '99.00', null, '99', '99', '1000', '毛衫测试11', 'xxx', '109.00', '100', '0', '件', '1000.00', '1', '1,2,3', '毛衫测试', '毛衫测试', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg,http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180604/1522738681.jpg', '毛衫测试', '毛衫测试', '