alter table wx_coupon_order_0    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_1    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_2    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_3    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_4    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_5    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_6    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_7    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_8    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_9    add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_10   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_11   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_12   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_13   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_14   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_15   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_16   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_17   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_18   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_19   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_20   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_21   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_22   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_23   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_24   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_25   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_26   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_27   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_28   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_29   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_30   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_31   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_32   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_33   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_34   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_35   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_36   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_37   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_38   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_39   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_40   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_41   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_42   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_43   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_44   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_45   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_46   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_47   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_48   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_49   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_50   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_51   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_52   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_53   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_54   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_55   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_56   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_57   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_58   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_59   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_60   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_61   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_62   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_63   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_64   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_65   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_66   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_67   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_68   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_69   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_70   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_71   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_72   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_73   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_74   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_75   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_76   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_77   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_78   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_79   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_80   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_81   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_82   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_83   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_84   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_85   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_86   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_87   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_88   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_89   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_90   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_91   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_92   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_93   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_94   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_95   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_96   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_97   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_98   add column b_merchant_id bigint(20) AFTER `b_user_id`;
alter table wx_coupon_order_99   add column b_merchant_id bigint(20) AFTER `b_user_id`;

UPDATE wx_coupon_order_0     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_1     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_2     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_3     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_4     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_5     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_6     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_7     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_8     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_9     co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_10    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_11    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_12    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_13    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_14    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_15    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_16    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_17    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_18    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_19    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_20    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_21    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_22    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_23    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_24    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_25    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_26    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_27    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_28    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_29    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_30    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_31    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_32    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_33    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_34    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_35    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_36    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_37    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_38    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_39    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_40    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_41    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_42    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_43    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_44    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_45    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_46    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_47    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_48    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_49    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_50    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_51    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_52    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_53    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_54    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_55    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_56    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_57    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_58    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_59    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_60    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_61    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_62    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_63    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_64    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_65    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_66    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_67    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_68    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_69    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_70    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_71    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_72    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_73    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_74    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_75    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_76    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_77    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_78    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_79    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_80    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_81    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_82    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_83    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_84    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_85    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_86    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_87    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_88    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_89    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_90    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_91    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_92    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_93    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_94    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_95    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_96    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_97    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_98    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;
UPDATE wx_coupon_order_99    co, wx_merchant_b_user bu SET co.`b_merchant_id` = bu.`merchant_id` WHERE co.`b_user_id` = bu.`id`;


INSERT INTO wx_batch_order_0    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_0    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_1    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_1    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_2    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_2    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_3    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_3    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_4    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_4    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_5    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_5    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_6    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_6    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_7    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_7    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_8    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_8    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_9    (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_9    WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_10   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_10   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_11   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_11   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_12   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_12   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_13   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_13   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_14   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_14   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_15   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_15   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_16   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_16   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_17   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_17   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_18   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_18   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_19   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_19   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_20   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_20   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_21   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_21   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_22   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_22   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_23   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_23   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_24   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_24   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_25   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_25   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_26   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_26   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_27   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_27   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_28   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_28   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_29   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_29   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_30   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_30   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_31   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_31   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_32   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_32   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_33   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_33   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_34   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_34   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_35   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_35   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_36   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_36   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_37   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_37   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_38   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_38   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_39   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_39   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_40   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_40   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_41   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_41   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_42   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_42   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_43   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_43   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_44   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_44   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_45   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_45   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_46   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_46   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_47   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_47   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_48   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_48   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_49   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_49   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_50   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_50   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_51   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_51   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_52   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_52   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_53   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_53   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_54   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_54   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_55   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_55   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_56   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_56   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_57   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_57   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_58   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_58   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_59   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_59   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_60   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_60   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_61   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_61   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_62   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_62   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_63   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_63   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_64   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_64   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_65   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_65   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_66   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_66   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_67   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_67   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_68   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_68   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_69   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_69   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_70   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_70   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_71   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_71   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_72   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_72   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_73   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_73   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_74   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_74   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_75   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_75   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_76   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_76   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_77   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_77   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_78   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_78   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_79   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_79   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_80   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_80   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_81   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_81   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_82   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_82   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_83   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_83   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_84   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_84   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_85   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_85   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_86   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_86   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_87   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_87   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_88   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_88   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_89   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_89   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_90   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_90   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_91   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_91   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_92   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_92   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_93   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_93   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_94   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_94   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_95   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_95   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_96   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_96   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_97   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_97   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_98   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_98   WHERE compose_order_type = 0 AND compose_order_type = 0 ;
INSERT INTO wx_batch_order_99   (id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date)  SELECT id,tenant_id,parent_tenant_id,c_user_id,payment,create_date,update_date FROM wx_order_99   WHERE compose_order_type = 0 AND compose_order_type = 0 ;


UPDATE wx_order_0       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_1       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_2       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_3       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_4       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_5       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_6       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_7       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_8       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_9       SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_10      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_11      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_12      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_13      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_14      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_15      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_16      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_17      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_18      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_19      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_20      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_21      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_22      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_23      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_24      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_25      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_26      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_27      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_28      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_29      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_30      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_31      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_32      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_33      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_34      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_35      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_36      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_37      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_38      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_39      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_40      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_41      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_42      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_43      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_44      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_45      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_46      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_47      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_48      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_49      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_50      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_51      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_52      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_53      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_54      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_55      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_56      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_57      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_58      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_59      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_60      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_61      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_62      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_63      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_64      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_65      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_66      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_67      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_68      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_69      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_70      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_71      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_72      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_73      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_74      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_75      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_76      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_77      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_78      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_79      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_80      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_81      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_82      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_83      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_84      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_85      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_86      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_87      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_88      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_89      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_90      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_91      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_92      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_93      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_94      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_95      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_96      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_97      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_98      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;
UPDATE wx_order_99      SET compose_order_id = id WHERE compose_order_type = 0 AND compose_order_type = 0 ;


ALTER TABLE `mallink`.`wx_batch_order_0` 
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_1`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_2`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_3`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_4`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_5`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_6`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_7`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_8`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_9`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_10`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_11`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_12`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_13`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_14`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_15`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_16`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_17`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_18`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_19`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_20`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_21`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_22`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_23`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_24`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_25`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_26`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_27`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_28`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_29`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_30`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_31`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_32`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_33`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_34`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_35`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_36`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_37`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_38`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_39`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_40`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_41`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_42`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_43`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_44`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_45`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_46`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_47`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_48`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_49`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_50`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_51`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_52`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_53`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_54`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_55`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_56`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_57`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_58`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_59`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_60`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_61`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_62`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_63`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_64`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_65`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_66`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_67`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_68`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_69`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_70`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_71`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_72`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_73`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_74`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_75`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_76`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_77`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_78`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_79`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_80`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_81`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_82`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_83`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_84`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_85`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_86`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_87`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_88`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_89`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_90`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_91`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_92`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_93`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_94`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_95`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_96`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_97`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_98`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;
ALTER TABLE `mallink`.`wx_batch_order_99`
ADD COLUMN `pay_vendor` int(3) COMMENT '支付渠道EnumPayWay' ;

update wx_batch_order_0    set pay_vendor=1;
update wx_batch_order_1    set pay_vendor=1;
update wx_batch_order_2    set pay_vendor=1;
update wx_batch_order_3    set pay_vendor=1;
update wx_batch_order_4    set pay_vendor=1;
update wx_batch_order_5    set pay_vendor=1;
update wx_batch_order_6    set pay_vendor=1;
update wx_batch_order_7    set pay_vendor=1;
update wx_batch_order_8    set pay_vendor=1;
update wx_batch_order_9    set pay_vendor=1;
update wx_batch_order_10   set pay_vendor=1;
update wx_batch_order_11   set pay_vendor=1;
update wx_batch_order_12   set pay_vendor=1;
update wx_batch_order_13   set pay_vendor=1;
update wx_batch_order_14   set pay_vendor=1;
update wx_batch_order_15   set pay_vendor=1;
update wx_batch_order_16   set pay_vendor=1;
update wx_batch_order_17   set pay_vendor=1;
update wx_batch_order_18   set pay_vendor=1;
update wx_batch_order_19   set pay_vendor=1;
update wx_batch_order_20   set pay_vendor=1;
update wx_batch_order_21   set pay_vendor=1;
update wx_batch_order_22   set pay_vendor=1;
update wx_batch_order_23   set pay_vendor=1;
update wx_batch_order_24   set pay_vendor=1;
update wx_batch_order_25   set pay_vendor=1;
update wx_batch_order_26   set pay_vendor=1;
update wx_batch_order_27   set pay_vendor=1;
update wx_batch_order_28   set pay_vendor=1;
update wx_batch_order_29   set pay_vendor=1;
update wx_batch_order_30   set pay_vendor=1;
update wx_batch_order_31   set pay_vendor=1;
update wx_batch_order_32   set pay_vendor=1;
update wx_batch_order_33   set pay_vendor=1;
update wx_batch_order_34   set pay_vendor=1;
update wx_batch_order_35   set pay_vendor=1;
update wx_batch_order_36   set pay_vendor=1;
update wx_batch_order_37   set pay_vendor=1;
update wx_batch_order_38   set pay_vendor=1;
update wx_batch_order_39   set pay_vendor=1;
update wx_batch_order_40   set pay_vendor=1;
update wx_batch_order_41   set pay_vendor=1;
update wx_batch_order_42   set pay_vendor=1;
update wx_batch_order_43   set pay_vendor=1;
update wx_batch_order_44   set pay_vendor=1;
update wx_batch_order_45   set pay_vendor=1;
update wx_batch_order_46   set pay_vendor=1;
update wx_batch_order_47   set pay_vendor=1;
update wx_batch_order_48   set pay_vendor=1;
update wx_batch_order_49   set pay_vendor=1;
update wx_batch_order_50   set pay_vendor=1;
update wx_batch_order_51   set pay_vendor=1;
update wx_batch_order_52   set pay_vendor=1;
update wx_batch_order_53   set pay_vendor=1;
update wx_batch_order_54   set pay_vendor=1;
update wx_batch_order_55   set pay_vendor=1;
update wx_batch_order_56   set pay_vendor=1;
update wx_batch_order_57   set pay_vendor=1;
update wx_batch_order_58   set pay_vendor=1;
update wx_batch_order_59   set pay_vendor=1;
update wx_batch_order_60   set pay_vendor=1;
update wx_batch_order_61   set pay_vendor=1;
update wx_batch_order_62   set pay_vendor=1;
update wx_batch_order_63   set pay_vendor=1;
update wx_batch_order_64   set pay_vendor=1;
update wx_batch_order_65   set pay_vendor=1;
update wx_batch_order_66   set pay_vendor=1;
update wx_batch_order_67   set pay_vendor=1;
update wx_batch_order_68   set pay_vendor=1;
update wx_batch_order_69   set pay_vendor=1;
update wx_batch_order_70   set pay_vendor=1;
update wx_batch_order_71   set pay_vendor=1;
update wx_batch_order_72   set pay_vendor=1;
update wx_batch_order_73   set pay_vendor=1;
update wx_batch_order_74   set pay_vendor=1;
update wx_batch_order_75   set pay_vendor=1;
update wx_batch_order_76   set pay_vendor=1;
update wx_batch_order_77   set pay_vendor=1;
update wx_batch_order_78   set pay_vendor=1;
update wx_batch_order_79   set pay_vendor=1;
update wx_batch_order_80   set pay_vendor=1;
update wx_batch_order_81   set pay_vendor=1;
update wx_batch_order_82   set pay_vendor=1;
update wx_batch_order_83   set pay_vendor=1;
update wx_batch_order_84   set pay_vendor=1;
update wx_batch_order_85   set pay_vendor=1;
update wx_batch_order_86   set pay_vendor=1;
update wx_batch_order_87   set pay_vendor=1;
update wx_batch_order_88   set pay_vendor=1;
update wx_batch_order_89   set pay_vendor=1;
update wx_batch_order_90   set pay_vendor=1;
update wx_batch_order_91   set pay_vendor=1;
update wx_batch_order_92   set pay_vendor=1;
update wx_batch_order_93   set pay_vendor=1;
update wx_batch_order_94   set pay_vendor=1;
update wx_batch_order_95   set pay_vendor=1;
update wx_batch_order_96   set pay_vendor=1;
update wx_batch_order_97   set pay_vendor=1;
update wx_batch_order_98   set pay_vendor=1;
update wx_batch_order_99   set pay_vendor=1;

ALTER TABLE `mallink`.`wx_batch_order_0` 
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_1`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_2`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_3`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_4`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_5`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_6`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_7`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_8`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_9`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_10`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_11`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_12`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_13`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_14`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_15`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_16`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_17`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_18`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_19`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_20`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_21`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_22`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_23`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_24`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_25`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_26`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_27`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_28`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_29`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_30`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_31`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_32`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_33`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_34`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_35`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_36`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_37`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_38`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_39`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_40`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_41`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_42`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_43`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_44`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_45`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_46`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_47`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_48`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_49`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_50`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_51`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_52`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_53`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_54`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_55`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_56`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_57`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_58`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_59`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_60`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_61`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_62`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_63`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_64`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_65`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_66`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_67`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_68`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_69`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_70`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_71`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_72`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_73`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_74`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_75`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_76`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_77`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_78`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_79`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_80`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_81`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_82`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_83`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_84`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_85`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_86`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_87`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_88`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_89`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_90`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_91`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_92`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_93`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_94`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_95`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_96`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_97`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_98`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;
ALTER TABLE `mallink`.`wx_batch_order_99`
ADD COLUMN `order_type` int(1) COMMENT '组合订单类型EnumComposeOrder' ;

UPDATE wx_batch_order_0  bo,  wx_order_0  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_1  bo,  wx_order_1  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_2  bo,  wx_order_2  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_3  bo,  wx_order_3  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_4  bo,  wx_order_4  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_5  bo,  wx_order_5  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_6  bo,  wx_order_6  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_7  bo,  wx_order_7  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_8  bo,  wx_order_8  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_9  bo,  wx_order_9  o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_10 bo,  wx_order_10 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_11 bo,  wx_order_11 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_12 bo,  wx_order_12 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_13 bo,  wx_order_13 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_14 bo,  wx_order_14 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_15 bo,  wx_order_15 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_16 bo,  wx_order_16 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_17 bo,  wx_order_17 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_18 bo,  wx_order_18 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_19 bo,  wx_order_19 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_20 bo,  wx_order_20 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_21 bo,  wx_order_21 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_22 bo,  wx_order_22 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_23 bo,  wx_order_23 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_24 bo,  wx_order_24 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_25 bo,  wx_order_25 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_26 bo,  wx_order_26 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_27 bo,  wx_order_27 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_28 bo,  wx_order_28 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_29 bo,  wx_order_29 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_30 bo,  wx_order_30 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_31 bo,  wx_order_31 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_32 bo,  wx_order_32 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_33 bo,  wx_order_33 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_34 bo,  wx_order_34 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_35 bo,  wx_order_35 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_36 bo,  wx_order_36 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_37 bo,  wx_order_37 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_38 bo,  wx_order_38 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_39 bo,  wx_order_39 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_40 bo,  wx_order_40 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_41 bo,  wx_order_41 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_42 bo,  wx_order_42 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_43 bo,  wx_order_43 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_44 bo,  wx_order_44 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_45 bo,  wx_order_45 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_46 bo,  wx_order_46 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_47 bo,  wx_order_47 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_48 bo,  wx_order_48 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_49 bo,  wx_order_49 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_50 bo,  wx_order_50 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_51 bo,  wx_order_51 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_52 bo,  wx_order_52 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_53 bo,  wx_order_53 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_54 bo,  wx_order_54 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_55 bo,  wx_order_55 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_56 bo,  wx_order_56 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_57 bo,  wx_order_57 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_58 bo,  wx_order_58 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_59 bo,  wx_order_59 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_60 bo,  wx_order_60 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_61 bo,  wx_order_61 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_62 bo,  wx_order_62 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_63 bo,  wx_order_63 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_64 bo,  wx_order_64 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_65 bo,  wx_order_65 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_66 bo,  wx_order_66 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_67 bo,  wx_order_67 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_68 bo,  wx_order_68 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_69 bo,  wx_order_69 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_70 bo,  wx_order_70 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_71 bo,  wx_order_71 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_72 bo,  wx_order_72 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_73 bo,  wx_order_73 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_74 bo,  wx_order_74 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_75 bo,  wx_order_75 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_76 bo,  wx_order_76 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_77 bo,  wx_order_77 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_78 bo,  wx_order_78 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_79 bo,  wx_order_79 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_80 bo,  wx_order_80 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_81 bo,  wx_order_81 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_82 bo,  wx_order_82 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_83 bo,  wx_order_83 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_84 bo,  wx_order_84 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_85 bo,  wx_order_85 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_86 bo,  wx_order_86 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_87 bo,  wx_order_87 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_88 bo,  wx_order_88 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_89 bo,  wx_order_89 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_90 bo,  wx_order_90 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_91 bo,  wx_order_91 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_92 bo,  wx_order_92 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_93 bo,  wx_order_93 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_94 bo,  wx_order_94 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_95 bo,  wx_order_95 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_96 bo,  wx_order_96 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_97 bo,  wx_order_97 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_98 bo,  wx_order_98 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;
UPDATE wx_batch_order_99 bo,  wx_order_99 o SET bo.order_type=o.compose_order_type   WHERE bo.id = o.compose_order_id;

ALTER TABLE `wx_bill_settle` ADD COLUMN `has_recorded` int(1) NOT NULL DEFAULT 0 COMMENT '是否已经被统计 1:已经被统计' ;

CREATE TABLE `wx_bill_settle_schedule` (
  `id` bigint(20) NOT NULL COMMENT '主键ID',
  `tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '租户ID',
  `parent_tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父租户ID',
  `settle_number` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '结算单号',
  `merchant_id` bigint(20) DEFAULT NULL COMMENT '商户ID',
  `status` smallint(1) DEFAULT '0' COMMENT '7待清算3结算完成',
  `apply_status` smallint(1) DEFAULT '0' COMMENT '审核状态0未审核1审核中2审核完成3驳回4异常终止5撤回',
  `receive_money` bigint(12) DEFAULT '0' COMMENT '收款',
  `pay_money` bigint(12) DEFAULT '0' COMMENT '承付',
  `settletime` datetime DEFAULT NULL COMMENT '结算时间',
  `createtime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updatetime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  `settle_receive_pay` bigint(12) NOT NULL DEFAULT '0' COMMENT '结算收款，定时统计',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='结算单';


