From 2aa062f02f88b26f47f92f944b9de1ee39b7d9e6 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Thu, 9 May 2019 19:42:05 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8A=95=E6=94=BE=E6=B8=A0=E9=81=93][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]:=E6=8A=95=E6=94=BE=E6=B8=A0=E9=81=93?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V201905091750__CHANGE_COUPON_CHANNEL.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mallinkAdmin/src/main/resources/db/migration/V201905091750__CHANGE_COUPON_CHANNEL.sql diff --git a/mallinkAdmin/src/main/resources/db/migration/V201905091750__CHANGE_COUPON_CHANNEL.sql b/mallinkAdmin/src/main/resources/db/migration/V201905091750__CHANGE_COUPON_CHANNEL.sql new file mode 100644 index 000000000..12e60bbcf --- /dev/null +++ b/mallinkAdmin/src/main/resources/db/migration/V201905091750__CHANGE_COUPON_CHANNEL.sql @@ -0,0 +1,2 @@ +update wx_coupon_channel set begin_time = create_date where begin_time is null; +update wx_coupon_channel co, wx_coupon c set co.end_time = c.valid_end_date where co.target_ad != 2 and co.target_ad != 8 and co.coupon_id = c.id and c.valid_type = 1 and co.end_time is null; \ No newline at end of file