25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
914 B

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