From b69094b6408cd26373f9671d4ad5eedd639bad4a Mon Sep 17 00:00:00 2001 From: xhxu Date: Tue, 26 Apr 2022 11:34:14 +0800 Subject: [PATCH] //update refund --- .../db/migration/V2022042600001__refund.sql | 409 ++++++++++++++++++ .../impl/WxRefundOrderServiceImpl.java | 8 +- 2 files changed, 413 insertions(+), 4 deletions(-) create mode 100644 mallinkAdmin/src/main/resources/db/migration/V2022042600001__refund.sql diff --git a/mallinkAdmin/src/main/resources/db/migration/V2022042600001__refund.sql b/mallinkAdmin/src/main/resources/db/migration/V2022042600001__refund.sql new file mode 100644 index 000000000..d4fcd5796 --- /dev/null +++ b/mallinkAdmin/src/main/resources/db/migration/V2022042600001__refund.sql @@ -0,0 +1,409 @@ +--测试 +--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); diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java index 5667d85cd..24f4f6e84 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxRefundOrderServiceImpl.java @@ -251,11 +251,11 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { updWxOrder.setId(wxOrder.getId()); updWxOrder.updateTenantInfo(wxOrder); if (payType == EnumPayType.PAY_B_REFUND) { - updWxOrder.setRefDetail("["+bUser.getId()+"]B端管理员操作退款"); //B端发起退款后存B端用户ID在此 + updWxOrder.setRefDetail("B端管理员"+"["+bUser.getId()+"]"+"操作退款"); //B端发起退款后存B端用户ID在此 } else if (payType == EnumPayType.PAY_ADMIN_REFUND) { - updWxOrder.setRefDetail("["+aUserId+"]A端管理员操作退款"); + updWxOrder.setRefDetail("A端管理员"+"["+aUserId+"]"+"操作退款"); } else if (payType == EnumPayType.PAY_AUTO_REFUND) { - updWxOrder.setRefDetail("定时过期发起退款"); + updWxOrder.setRefDetail("过期退款"); } else if (payType == EnumPayType.PAY_C_REFUND){ updWxOrder.setRefDetail("用户发起退款"); } else{ @@ -483,7 +483,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { updWxOrder.setId(wxOrder.getId()); updWxOrder.updateTenantInfo(wxOrder); if (payType == EnumPayType.PAY_B_REFUND) { - updWxOrder.setRefDetail("["+bUserId+"]B端管理员操作退款"); //B端发起退款后存B端用户ID在此 + updWxOrder.setRefDetail("B端管理员"+"["+bUserId+"]"+"操作退款"); //B端发起退款后存B端用户ID在此 } else{ logger.error("未知退款类型"); throw new MallinkException(ErrorCode.REFUND_NOT_ALLOW.getCode(),"未知退款类型");