--测试
--UPDATE `mallink`.`wx_msg_validationcode_model` SET `content` = '尊敬的用户，您的退款订单：[${orderNumber}]已申请退款，款项将原路退还，请您注意查收。退款金额[${priceStr}]',`model_code` = 'SMS_239319696' WHERE `id` = 666429058236550321;

--生产
UPDATE `mallink`.`wx_msg_validationcode_model` SET `content` = '尊敬的用户，您的退款订单：[${orderNumber}]已申请退款，款项将原路退还，请您注意查收。退款金额[${priceStr}]',`model_code` = 'SMS_239319696' WHERE `id` = 666421038236550321;


ALTER TABLE `mallink`.`wx_order_0`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_1`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_2`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_3`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_4`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_5`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_6`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_7`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_8`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_9`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_10`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_11`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_12`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_13`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_14`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_15`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_16`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_17`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_18`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_19`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_20`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_21`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_22`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_23`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_24`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_25`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_26`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_27`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_28`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_29`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_30`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_31`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_32`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_33`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_34`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_35`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_36`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_37`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_38`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_39`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_40`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_41`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_42`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_43`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_44`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_45`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_46`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_47`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_48`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_49`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_50`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_51`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_52`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_53`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_54`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_55`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_56`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_57`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_58`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_59`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_60`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_61`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_62`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_63`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_64`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_65`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_66`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_67`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_68`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_69`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_70`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_71`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_72`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_73`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_74`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_75`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_76`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_77`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_78`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_79`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_80`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_81`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_82`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_83`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_84`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_85`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_86`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_87`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_88`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_89`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_90`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_91`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_92`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_93`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_94`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_95`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_96`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_97`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_98`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;
ALTER TABLE `mallink`.`wx_order_99`
MODIFY COLUMN `detail` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL AFTER `update_date`,
ADD COLUMN `ref_detail` varchar(500) AFTER `detail`;

--刷退款原因
update wx_order_0 set ref_detail = detail where order_status in (3,4,5);
update wx_order_1 set ref_detail = detail where order_status in (3,4,5);
update wx_order_2 set ref_detail = detail where order_status in (3,4,5);
update wx_order_3 set ref_detail = detail where order_status in (3,4,5);
update wx_order_4 set ref_detail = detail where order_status in (3,4,5);
update wx_order_5 set ref_detail = detail where order_status in (3,4,5);
update wx_order_6 set ref_detail = detail where order_status in (3,4,5);
update wx_order_7 set ref_detail = detail where order_status in (3,4,5);
update wx_order_8 set ref_detail = detail where order_status in (3,4,5);
update wx_order_9 set ref_detail = detail where order_status in (3,4,5);
update wx_order_10 set ref_detail = detail where order_status in (3,4,5);
update wx_order_11 set ref_detail = detail where order_status in (3,4,5);
update wx_order_12 set ref_detail = detail where order_status in (3,4,5);
update wx_order_13 set ref_detail = detail where order_status in (3,4,5);
update wx_order_14 set ref_detail = detail where order_status in (3,4,5);
update wx_order_15 set ref_detail = detail where order_status in (3,4,5);
update wx_order_16 set ref_detail = detail where order_status in (3,4,5);
update wx_order_17 set ref_detail = detail where order_status in (3,4,5);
update wx_order_18 set ref_detail = detail where order_status in (3,4,5);
update wx_order_19 set ref_detail = detail where order_status in (3,4,5);
update wx_order_20 set ref_detail = detail where order_status in (3,4,5);
update wx_order_21 set ref_detail = detail where order_status in (3,4,5);
update wx_order_22 set ref_detail = detail where order_status in (3,4,5);
update wx_order_23 set ref_detail = detail where order_status in (3,4,5);
update wx_order_24 set ref_detail = detail where order_status in (3,4,5);
update wx_order_25 set ref_detail = detail where order_status in (3,4,5);
update wx_order_26 set ref_detail = detail where order_status in (3,4,5);
update wx_order_27 set ref_detail = detail where order_status in (3,4,5);
update wx_order_28 set ref_detail = detail where order_status in (3,4,5);
update wx_order_29 set ref_detail = detail where order_status in (3,4,5);
update wx_order_30 set ref_detail = detail where order_status in (3,4,5);
update wx_order_31 set ref_detail = detail where order_status in (3,4,5);
update wx_order_32 set ref_detail = detail where order_status in (3,4,5);
update wx_order_33 set ref_detail = detail where order_status in (3,4,5);
update wx_order_34 set ref_detail = detail where order_status in (3,4,5);
update wx_order_35 set ref_detail = detail where order_status in (3,4,5);
update wx_order_36 set ref_detail = detail where order_status in (3,4,5);
update wx_order_37 set ref_detail = detail where order_status in (3,4,5);
update wx_order_38 set ref_detail = detail where order_status in (3,4,5);
update wx_order_39 set ref_detail = detail where order_status in (3,4,5);
update wx_order_40 set ref_detail = detail where order_status in (3,4,5);
update wx_order_41 set ref_detail = detail where order_status in (3,4,5);
update wx_order_42 set ref_detail = detail where order_status in (3,4,5);
update wx_order_43 set ref_detail = detail where order_status in (3,4,5);
update wx_order_44 set ref_detail = detail where order_status in (3,4,5);
update wx_order_45 set ref_detail = detail where order_status in (3,4,5);
update wx_order_46 set ref_detail = detail where order_status in (3,4,5);
update wx_order_47 set ref_detail = detail where order_status in (3,4,5);
update wx_order_48 set ref_detail = detail where order_status in (3,4,5);
update wx_order_49 set ref_detail = detail where order_status in (3,4,5);
update wx_order_50 set ref_detail = detail where order_status in (3,4,5);
update wx_order_51 set ref_detail = detail where order_status in (3,4,5);
update wx_order_52 set ref_detail = detail where order_status in (3,4,5);
update wx_order_53 set ref_detail = detail where order_status in (3,4,5);
update wx_order_54 set ref_detail = detail where order_status in (3,4,5);
update wx_order_55 set ref_detail = detail where order_status in (3,4,5);
update wx_order_56 set ref_detail = detail where order_status in (3,4,5);
update wx_order_57 set ref_detail = detail where order_status in (3,4,5);
update wx_order_58 set ref_detail = detail where order_status in (3,4,5);
update wx_order_59 set ref_detail = detail where order_status in (3,4,5);
update wx_order_60 set ref_detail = detail where order_status in (3,4,5);
update wx_order_61 set ref_detail = detail where order_status in (3,4,5);
update wx_order_62 set ref_detail = detail where order_status in (3,4,5);
update wx_order_63 set ref_detail = detail where order_status in (3,4,5);
update wx_order_64 set ref_detail = detail where order_status in (3,4,5);
update wx_order_65 set ref_detail = detail where order_status in (3,4,5);
update wx_order_66 set ref_detail = detail where order_status in (3,4,5);
update wx_order_67 set ref_detail = detail where order_status in (3,4,5);
update wx_order_68 set ref_detail = detail where order_status in (3,4,5);
update wx_order_69 set ref_detail = detail where order_status in (3,4,5);
update wx_order_70 set ref_detail = detail where order_status in (3,4,5);
update wx_order_71 set ref_detail = detail where order_status in (3,4,5);
update wx_order_72 set ref_detail = detail where order_status in (3,4,5);
update wx_order_73 set ref_detail = detail where order_status in (3,4,5);
update wx_order_74 set ref_detail = detail where order_status in (3,4,5);
update wx_order_75 set ref_detail = detail where order_status in (3,4,5);
update wx_order_76 set ref_detail = detail where order_status in (3,4,5);
update wx_order_77 set ref_detail = detail where order_status in (3,4,5);
update wx_order_78 set ref_detail = detail where order_status in (3,4,5);
update wx_order_79 set ref_detail = detail where order_status in (3,4,5);
update wx_order_80 set ref_detail = detail where order_status in (3,4,5);
update wx_order_81 set ref_detail = detail where order_status in (3,4,5);
update wx_order_82 set ref_detail = detail where order_status in (3,4,5);
update wx_order_83 set ref_detail = detail where order_status in (3,4,5);
update wx_order_84 set ref_detail = detail where order_status in (3,4,5);
update wx_order_85 set ref_detail = detail where order_status in (3,4,5);
update wx_order_86 set ref_detail = detail where order_status in (3,4,5);
update wx_order_87 set ref_detail = detail where order_status in (3,4,5);
update wx_order_88 set ref_detail = detail where order_status in (3,4,5);
update wx_order_89 set ref_detail = detail where order_status in (3,4,5);
update wx_order_90 set ref_detail = detail where order_status in (3,4,5);
update wx_order_91 set ref_detail = detail where order_status in (3,4,5);
update wx_order_92 set ref_detail = detail where order_status in (3,4,5);
update wx_order_93 set ref_detail = detail where order_status in (3,4,5);
update wx_order_94 set ref_detail = detail where order_status in (3,4,5);
update wx_order_95 set ref_detail = detail where order_status in (3,4,5);
update wx_order_96 set ref_detail = detail where order_status in (3,4,5);
update wx_order_97 set ref_detail = detail where order_status in (3,4,5);
update wx_order_98 set ref_detail = detail where order_status in (3,4,5);
update wx_order_99 set ref_detail = detail where order_status in (3,4,5);
