营销活动

119 阅读3分钟

1、优惠卷

优惠卷管理

  1. 使用分类:全部商品、指定商品、指定店铺、分类优惠卷
  2. 功能分类:折扣优惠卷、抵消固定金额优惠卷

优惠卷发送到个人手中、优惠卷用户领取
用户优惠卷列表
优惠卷结算

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for tp_coupon
-- ----------------------------
DROP TABLE IF EXISTS `tp_coupon`;
CREATE TABLE `tp_coupon` (
  `id` int(8) NOT NULL AUTO_INCREMENT COMMENT '表id',
  `name` varchar(50) NOT NULL DEFAULT '' COMMENT '优惠券名字',
  `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '发放类型 0下单赠送1 指定发放 2 免费领取 3线下发放',
  `money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '优惠券金额',
  `condition` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '使用条件',
  `createnum` int(11) DEFAULT '0' COMMENT '发放数量',
  `send_num` int(11) DEFAULT '0' COMMENT '已领取数量',
  `use_num` int(11) DEFAULT '0' COMMENT '已使用数量',
  `send_start_time` int(11) DEFAULT NULL COMMENT '发放开始时间',
  `send_end_time` int(11) DEFAULT NULL COMMENT '发放结束时间',
  `use_start_time` int(11) DEFAULT NULL COMMENT '使用开始时间',
  `use_end_time` int(11) DEFAULT NULL COMMENT '使用结束时间',
  `add_time` int(11) DEFAULT NULL COMMENT '添加时间',
  `status` int(2) DEFAULT NULL COMMENT '状态:1有效,2无效',
  `use_type` tinyint(1) DEFAULT '0' COMMENT '使用范围:0全店通用1指定商品可用2指定分类商品可用',
  PRIMARY KEY (`id`),
  KEY `use_end_time` (`use_end_time`)
) ENGINE=MyISAM AUTO_INCREMENT=45 DEFAULT CHARSET=utf8 COMMENT='优惠卷列表';
 

-- ----------------------------
-- Table structure for tp_goods_coupon
-- ----------------------------
DROP TABLE IF EXISTS `tp_goods_coupon`;
CREATE TABLE `tp_goods_coupon` (
  `coupon_id` int(8) NOT NULL COMMENT '优惠券id',
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '指定的商品id:为零表示不指定商品',
  `goods_category_id` smallint(5) NOT NULL DEFAULT '0' COMMENT '指定的商品分类:为零表示不指定分类',
  PRIMARY KEY (`coupon_id`,`goods_id`,`goods_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='用户卷指定商品、分类关联表\r\n';
 
-- ----------------------------
-- Table structure for tp_user_coupon
-- ----------------------------
DROP TABLE IF EXISTS `tp_user_coupon`;
CREATE TABLE `tp_user_coupon` (
  `id` int(8) NOT NULL AUTO_INCREMENT COMMENT '表id',
  `coupon_id` int(8) NOT NULL DEFAULT '0' COMMENT '优惠券 对应coupon表id',
  `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '发放类型 1 按订单发放 2 注册 3 邀请 4 按用户发放',
  `user_id` int(8) NOT NULL DEFAULT '0' COMMENT '用户id',
  `use_time` int(11) NOT NULL DEFAULT '0' COMMENT '使用时间',
  `send_time` int(11) NOT NULL DEFAULT '0' COMMENT '发放时间',
  `status` tinyint(1) DEFAULT '0' COMMENT '0未使用1已使用2已过期',
  PRIMARY KEY (`id`),
  KEY `cid` (`coupon_id`),
  KEY `uid` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=324 DEFAULT CHARSET=utf8 COMMENT='用户优惠卷列表\r\n';

2、满减满送

使用分类:全部商品、指定商品、指定店铺、分类优惠卷
功能分类:折扣、抵消固定金额

3、秒杀

1、平台发布活动时间,店家参与秒杀活动
2、平台或者店家直接发布活动

首页秒杀信息接口:使用缓存存储秒杀信息和下一场秒杀倒计时
获取秒杀时间段
获取秒杀的产品列表
获取产品数据
创建订单
提交订单

4、拼团

1、平台发布活动时间,店家参与秒杀活动
2、平台或者店家直接发布活动

5、游戏

1、直接获取对应商品
2、获得积分,进行积分兑换

6、积分兑换

1、平台发布活动时间,店家参与秒杀活动
2、平台或者店家直接发布活动