From 69ac8e41584f0668506ccd230cffcd35c9a68fc0 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Fri, 21 Jun 2019 14:12:44 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=94=AF=E4=BB=98][=E4=BF=AE=E6=94=B9]:?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E9=80=9A=E9=81=93=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V201906211405__CHANGE_PAY_RATE.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 mallinkAdmin/src/main/resources/db/migration/V201906211405__CHANGE_PAY_RATE.sql diff --git a/mallinkAdmin/src/main/resources/db/migration/V201906211405__CHANGE_PAY_RATE.sql b/mallinkAdmin/src/main/resources/db/migration/V201906211405__CHANGE_PAY_RATE.sql new file mode 100644 index 000000000..80de372e9 --- /dev/null +++ b/mallinkAdmin/src/main/resources/db/migration/V201906211405__CHANGE_PAY_RATE.sql @@ -0,0 +1,12 @@ +ALTER TABLE `wx_pay_order` +ADD COLUMN `rate_amount` int(11) NULL DEFAULT NULL COMMENT '分账实际通道费'; + +ALTER TABLE `wx_pay_account` +ADD COLUMN `real_rate` int(6) NULL DEFAULT NULL COMMENT '支付实际费率(万分之几)' after `rate`; + +update `wx_pay_account` set `real_rate` = `rate`; + +ALTER TABLE `wx_pay_account_bill` +ADD COLUMN `real_rate` int(6) NULL DEFAULT NULL COMMENT '支付实际费率(万分之几)' after `rate`; + +update `wx_pay_account_bill` set `real_rate` = `rate`; \ No newline at end of file