ALTER TABLE `mallink`.`wx_card_spend` 
ADD COLUMN `settlement_status` smallint(2) NOT NULL DEFAULT 0 COMMENT '结算状态' ;


update wx_card_spend set settlement_status = pay_status where pay_status in (1,2);

update wx_card_spend set pay_status = 0 where pay_status in (1,2);

update wx_card_spend set pay_from=5 where pay_type=1;



delete from sys_config where id = 7;
delete from sys_config_value where config_item_id = 7;



ALTER TABLE `mallink`.`wx_card_info`
ADD COLUMN `pay_check` smallint(2) NOT NULL DEFAULT 0 AFTER `coupon_password`,
ADD COLUMN `pay_password` varchar(50) AFTER `pay_check`;

ALTER TABLE `mallink`.`wx_coupon_password`
ADD COLUMN `pay_check` smallint(2) NOT NULL DEFAULT 0 AFTER `password`;


ALTER TABLE `mallink`.`wx_card_info`
ADD COLUMN `pay_setting_remark` varchar(255) AFTER `pay_password`;

ALTER TABLE `mallink`.`wx_coupon_password`
ADD COLUMN `pay_setting_remark` varchar(255) AFTER `pay_password`;


ALTER TABLE `mallink`.`wx_coupon_0`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_1`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_2`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_3`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_4`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_5`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_6`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_7`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_8`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_9`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_10`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_11`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_12`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_13`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_14`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_15`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_16`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_17`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_18`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_19`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_20`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_21`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_22`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_23`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_24`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_25`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_26`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_27`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_28`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_29`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_30`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_31`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_32`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_33`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_34`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_35`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_36`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_37`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_38`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_39`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_40`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_41`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_42`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_43`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_44`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_45`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_46`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_47`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_48`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_49`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_50`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_51`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_52`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_53`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_54`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_55`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_56`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_57`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_58`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_59`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_60`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_61`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_62`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_63`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_64`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_65`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_66`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_67`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_68`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_69`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_70`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_71`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_72`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_73`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_74`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_75`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_76`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_77`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_78`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_79`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_80`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_81`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_82`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_83`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_84`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_85`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_86`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_87`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_88`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_89`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_90`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_91`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_92`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_93`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_94`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_95`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_96`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_97`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_98`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;
ALTER TABLE `mallink`.`wx_coupon_99`
ADD COLUMN `is_recharge` smallint(2) DEFAULT 0 COMMENT '是否可充值' AFTER `password_support`,
ADD COLUMN `used_password` varchar(50) COMMENT '使用密码' AFTER `is_recharge`;




ALTER TABLE `mallink`.`wx_card_spend`
ADD COLUMN `card_type` smallint(2) DEFAULT 0 AFTER `card_id`;


update wx_card_spend set card_type=1 where owner_id = 111111111111111111;

