alter table wx_card_info add column coupon_password varchar(50) comment '卡密'; alter table wx_card_info add column c_user_id bigint(20) comment '购买用户编码'; alter table wx_card_info add column owner_user_id bigint(20) comment '持有用户编码'; alter table wx_card_info add column status int(1) not null default 0 comment '状态'; ###待做wx_card_info####### ##coupon_password_id,coupon_password,c_user_id,owner_user_id 刷数据,后两者不能为空 # 转赠验证wx_coupon_order的c_user_id不变 #select * from wx_card_info where (c_user_id is null or owner_user_id is null) #and tenant_id = 789 order by create_date desc #update wx_card_info ci left join wx_coupon_order_89 co on ci.id = co.id #set ci.c_user_id = co.c_user_id, ci.owner_user_id = co.owner_id alter table wx_coupon_password add column is_stop int(1) not null default 0 comment '是否已停止1-是,0-否';