| @@ -0,0 +1,100 @@ | |||||
| ALTER TABLE `wx_coupon_0` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_1` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_2` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_3` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_4` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_5` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_6` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_7` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_8` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_9` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_10` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_11` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_12` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_13` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_14` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_15` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_16` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_17` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_18` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_19` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_20` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_21` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_22` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_23` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_24` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_25` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_26` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_27` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_28` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_29` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_30` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_31` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_32` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_33` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_34` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_35` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_36` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_37` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_38` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_39` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_40` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_41` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_42` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_43` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_44` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_45` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_46` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_47` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_48` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_49` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_50` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_51` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_52` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_53` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_54` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_55` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_56` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_57` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_58` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_59` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_60` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_61` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_62` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_63` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_64` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_65` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_66` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_67` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_68` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_69` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_70` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_71` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_72` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_73` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_74` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_75` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_76` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_77` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_78` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_79` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_80` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_81` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_82` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_83` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_84` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_85` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_86` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_87` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_88` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_89` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_90` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_91` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_92` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_93` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_94` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_95` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_96` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_97` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_98` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| ALTER TABLE `wx_coupon_99` ADD COLUMN `use_limit_rule` int(1) NOT NULL DEFAULT 1 COMMENT '1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量' AFTER `unit`; | |||||
| @@ -86,6 +86,9 @@ public class WxCoupon extends TenantEntity { | |||||
| private Integer salePrice; | private Integer salePrice; | ||||
| @io.swagger.annotations.ApiModelProperty(value="使用条件金额(适用于类型1,2,3,4)",name="usePrice") | @io.swagger.annotations.ApiModelProperty(value="使用条件金额(适用于类型1,2,3,4)",name="usePrice") | ||||
| private Integer usePrice; | private Integer usePrice; | ||||
| //EnumCouponUseLimitRule | |||||
| @io.swagger.annotations.ApiModelProperty(value="限领规则",name="useLimitRule") | |||||
| private Integer useLimitRule; | |||||
| @io.swagger.annotations.ApiModelProperty(value="限领张数",name="useLimitQuantity") | @io.swagger.annotations.ApiModelProperty(value="限领张数",name="useLimitQuantity") | ||||
| private Integer useLimitQuantity; | private Integer useLimitQuantity; | ||||
| @io.swagger.annotations.ApiModelProperty(value="1.主动领取2.定向投放",name="sendType") | @io.swagger.annotations.ApiModelProperty(value="1.主动领取2.定向投放",name="sendType") | ||||
| @@ -0,0 +1,37 @@ | |||||
| package com.iformall.enums; | |||||
| /** | |||||
| * 商品限购规则 | |||||
| * Created by Stormeye on 2018/08/09. | |||||
| */ | |||||
| public enum EnumCouponUseLimitRule { | |||||
| // 1:(默认)限制领取该券总数量 2:只限制券包中未使用的该券数量 | |||||
| TOTAL_USELIMIT(1, "限制领取该券总数量"), | |||||
| TOBEUSED_USELIMIT(2, "只限制券包中未使用的该券数量"); | |||||
| public static EnumCouponUseLimitRule getEnum(Integer code) { | |||||
| for (EnumCouponUseLimitRule value : values()) { | |||||
| if (value.getCode().equals(code)) { | |||||
| return value; | |||||
| } | |||||
| } | |||||
| return null; | |||||
| } | |||||
| private Integer code; | |||||
| private String message; | |||||
| EnumCouponUseLimitRule(Integer code, String message) { | |||||
| this.code = code; | |||||
| this.message = message; | |||||
| } | |||||
| public Integer getCode() { | |||||
| return code; | |||||
| } | |||||
| public String getMessage() { | |||||
| return message; | |||||
| } | |||||
| } | |||||
| @@ -469,6 +469,9 @@ public class WxOrderServiceImpl implements WxOrderService { | |||||
| couponOrderQ.updateTenantInfo(counpon); | couponOrderQ.updateTenantInfo(counpon); | ||||
| couponOrderQ.setCouponId(counpon.getId()); | couponOrderQ.setCouponId(counpon.getId()); | ||||
| couponOrderQ.setCUserId(user.getId()); | couponOrderQ.setCUserId(user.getId()); | ||||
| if (counpon.getUseLimitRule().equals(EnumCouponUseLimitRule.TOBEUSED_USELIMIT.getCode())) { | |||||
| couponOrderQ.setCouponOrderStatus(EnumCouponOrderStatus.COUPON_ORDER_USE_WAIT.getCode()); | |||||
| } | |||||
| // if (counpon.getSendType().equals(EnumCouponSendType.PASSIVE.getCode())) { | // if (counpon.getSendType().equals(EnumCouponSendType.PASSIVE.getCode())) { | ||||
| // couponOrderQ.setCouponOrderStatus(EnumCouponOrderStatus.COUPON_ORDER_USE_WAIT.getCode()); | // couponOrderQ.setCouponOrderStatus(EnumCouponOrderStatus.COUPON_ORDER_USE_WAIT.getCode()); | ||||
| // } | // } | ||||
| @@ -13,6 +13,7 @@ | |||||
| <result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> | <result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> | ||||
| <result column="sale_price" jdbcType="INTEGER" property="salePrice"/> | <result column="sale_price" jdbcType="INTEGER" property="salePrice"/> | ||||
| <result column="use_price" jdbcType="INTEGER" property="usePrice"/> | <result column="use_price" jdbcType="INTEGER" property="usePrice"/> | ||||
| <result column="use_limit_rule" jdbcType="INTEGER" property="useLimitRule"/> | |||||
| <result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> | <result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> | ||||
| <result column="send_type" jdbcType="INTEGER" property="sendType"/> | <result column="send_type" jdbcType="INTEGER" property="sendType"/> | ||||
| <result column="valid_type" jdbcType="INTEGER" property="validType"/> | <result column="valid_type" jdbcType="INTEGER" property="validType"/> | ||||
| @@ -64,6 +65,7 @@ | |||||
| <result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> | <result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> | ||||
| <result column="sale_price" jdbcType="INTEGER" property="salePrice"/> | <result column="sale_price" jdbcType="INTEGER" property="salePrice"/> | ||||
| <result column="use_price" jdbcType="INTEGER" property="usePrice"/> | <result column="use_price" jdbcType="INTEGER" property="usePrice"/> | ||||
| <result column="use_limit_rule" jdbcType="INTEGER" property="useLimitRule"/> | |||||
| <result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> | <result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> | ||||
| <result column="send_type" jdbcType="INTEGER" property="sendType"/> | <result column="send_type" jdbcType="INTEGER" property="sendType"/> | ||||
| <result column="valid_type" jdbcType="INTEGER" property="validType"/> | <result column="valid_type" jdbcType="INTEGER" property="validType"/> | ||||
| @@ -103,7 +105,7 @@ | |||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| distinct c.`id`,c.`tenant_id`,c.`parent_tenant_id`,c.`type`,c.`cover_img`,c.`cover_picture`,c.`detail_picture`, | distinct c.`id`,c.`tenant_id`,c.`parent_tenant_id`,c.`type`,c.`cover_img`,c.`cover_picture`,c.`detail_picture`, | ||||
| c.`title`,c.`sub_title`,c.`sale_price`,c.`use_price`,c.`use_limit_quantity`,c.`send_type`, | |||||
| c.`title`,c.`sub_title`,c.`sale_price`,c.`use_price`,c.`use_limit_rule`,c.`use_limit_quantity`,c.`send_type`, | |||||
| c.`valid_type`,c.`valid_start_date`,c.`valid_end_date`,c.pick_start_date,c.pick_end_date,c.`valid_days`,c.`detail`,c.`price`,c.tail_price,c.orig_price,c.`unit`,c.`remain_inventory`,c.`inventory`, | c.`valid_type`,c.`valid_start_date`,c.`valid_end_date`,c.pick_start_date,c.pick_end_date,c.`valid_days`,c.`detail`,c.`price`,c.tail_price,c.orig_price,c.`unit`,c.`remain_inventory`,c.`inventory`, | ||||
| c.`remark`,c.`status`,c.`create_date`,c.`update_date`,c.`business`,c.`sub_business`,c.`support_transfer`,c.`subsidy_num`,c.`subsidy_type`, | c.`remark`,c.`status`,c.`create_date`,c.`update_date`,c.`business`,c.`sub_business`,c.`support_transfer`,c.`subsidy_num`,c.`subsidy_type`, | ||||
| c.`press_limit_num`, c.`press_limit_hours`, c.`auto_refund`,c.`credit_price`,c.`credit_refund`,c.`put_apply_status`,c.`stock_apply_status`,c.`cancle_apply_status`, | c.`press_limit_num`, c.`press_limit_hours`, c.`auto_refund`,c.`credit_price`,c.`credit_refund`,c.`put_apply_status`,c.`stock_apply_status`,c.`cancle_apply_status`, | ||||
| @@ -152,6 +154,10 @@ | |||||
| and `use_price` = #{usePrice} | and `use_price` = #{usePrice} | ||||
| </if> | </if> | ||||
| <if test=" null != useLimitRule "> | |||||
| and `use_limit_rule` = #{useLimitRule} | |||||
| </if> | |||||
| <if test=" null != useLimitQuantity "> | <if test=" null != useLimitQuantity "> | ||||
| and `use_limit_quantity` = #{useLimitQuantity} | and `use_limit_quantity` = #{useLimitQuantity} | ||||
| </if> | </if> | ||||
| @@ -376,6 +382,10 @@ | |||||
| and c.`use_price` = #{usePrice} | and c.`use_price` = #{usePrice} | ||||
| </if> | </if> | ||||
| <if test=" null != useLimitRule "> | |||||
| and c.`use_limit_rule` = #{useLimitRule} | |||||
| </if> | |||||
| <if test=" null != useLimitQuantity "> | <if test=" null != useLimitQuantity "> | ||||
| and c.`use_limit_quantity` = #{useLimitQuantity} | and c.`use_limit_quantity` = #{useLimitQuantity} | ||||
| </if> | </if> | ||||
| @@ -596,6 +606,7 @@ | |||||
| <result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> | <result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> | ||||
| <result column="sale_price" jdbcType="INTEGER" property="salePrice"/> | <result column="sale_price" jdbcType="INTEGER" property="salePrice"/> | ||||
| <result column="use_price" jdbcType="INTEGER" property="usePrice"/> | <result column="use_price" jdbcType="INTEGER" property="usePrice"/> | ||||
| <result column="use_limit_rule" jdbcType="INTEGER" property="useLimitRule"/> | |||||
| <result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> | <result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> | ||||
| <result column="send_type" jdbcType="INTEGER" property="sendType"/> | <result column="send_type" jdbcType="INTEGER" property="sendType"/> | ||||
| <result column="valid_type" jdbcType="INTEGER" property="validType"/> | <result column="valid_type" jdbcType="INTEGER" property="validType"/> | ||||
| @@ -644,6 +655,7 @@ | |||||
| <result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> | <result column="sub_title" jdbcType="VARCHAR" property="subTitle"/> | ||||
| <result column="sale_price" jdbcType="INTEGER" property="salePrice"/> | <result column="sale_price" jdbcType="INTEGER" property="salePrice"/> | ||||
| <result column="use_price" jdbcType="INTEGER" property="usePrice"/> | <result column="use_price" jdbcType="INTEGER" property="usePrice"/> | ||||
| <result column="use_limit_rule" jdbcType="INTEGER" property="useLimitRule"/> | |||||
| <result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> | <result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/> | ||||
| <result column="send_type" jdbcType="INTEGER" property="sendType"/> | <result column="send_type" jdbcType="INTEGER" property="sendType"/> | ||||
| <result column="valid_type" jdbcType="INTEGER" property="validType"/> | <result column="valid_type" jdbcType="INTEGER" property="validType"/> | ||||
| @@ -1137,7 +1149,7 @@ | |||||
| <select id="findCouponByTopic" parameterType="com.iformall.domain.po.WxTopic" | <select id="findCouponByTopic" parameterType="com.iformall.domain.po.WxTopic" | ||||
| resultType="com.iformall.domain.po.WxCoupon"> | resultType="com.iformall.domain.po.WxCoupon"> | ||||
| select ct.id as id,wc.id as couponId, | select ct.id as id,wc.id as couponId, | ||||
| wc.tenant_id,wc.parent_tenant_id,wc.`type`,wc.`cover_img`,wc.`cover_picture`,wc.`detail_picture`,wc.`title`,wc.`sub_title`,wc.`sale_price`,wc.`use_price`,wc.`use_limit_quantity`,wc.`send_type`, | |||||
| wc.tenant_id,wc.parent_tenant_id,wc.`type`,wc.`cover_img`,wc.`cover_picture`,wc.`detail_picture`,wc.`title`,wc.`sub_title`,wc.`sale_price`,wc.`use_price`,wc.`use_limit_rule`,wc.`use_limit_quantity`,wc.`send_type`, | |||||
| wc.`valid_type`,wc.`valid_start_date`,wc.`valid_end_date`,wc.pick_start_date,wc.pick_end_date,wc.`valid_days`,wc.`detail`,wc.`price`,wc.tail_price,wc.orig_price,wc.`unit`,wc.`remain_inventory`,wc.`inventory`, | wc.`valid_type`,wc.`valid_start_date`,wc.`valid_end_date`,wc.pick_start_date,wc.pick_end_date,wc.`valid_days`,wc.`detail`,wc.`price`,wc.tail_price,wc.orig_price,wc.`unit`,wc.`remain_inventory`,wc.`inventory`, | ||||
| wc.`remark`,wc.`status`,wc.`create_date`,wc.`update_date`,wc.`business`,wc.`sub_business`,wc.`support_transfer`,wc.`subsidy_num`,wc.`subsidy_type`, | wc.`remark`,wc.`status`,wc.`create_date`,wc.`update_date`,wc.`business`,wc.`sub_business`,wc.`support_transfer`,wc.`subsidy_num`,wc.`subsidy_type`, | ||||
| wc.`press_limit_num`, wc.`press_limit_hours`, wc.`auto_refund`,wc.`credit_price`,wc.`credit_refund`,wc.`conditions`, | wc.`press_limit_num`, wc.`press_limit_hours`, wc.`auto_refund`,wc.`credit_price`,wc.`credit_refund`,wc.`conditions`, | ||||