From 3032e373348659a37d9a16176676cc30a274fae3 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Tue, 30 Jul 2019 19:08:19 +0800 Subject: [PATCH] =?UTF-8?q?[sql][=E4=BF=AE=E6=94=B9][=E7=A7=AF=E5=88=86?= =?UTF-8?q?=E8=A7=84=E5=88=99=E4=B8=8E=E6=88=90=E9=95=BF=E5=80=BC=E8=A7=84?= =?UTF-8?q?=E5=88=99=E6=B7=BB=E5=8A=A0=E4=B8=9A=E6=80=81]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/db/migration/V201907301905__ALTER_SCORE.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 mallinkAdmin/src/main/resources/db/migration/V201907301905__ALTER_SCORE.sql diff --git a/mallinkAdmin/src/main/resources/db/migration/V201907301905__ALTER_SCORE.sql b/mallinkAdmin/src/main/resources/db/migration/V201907301905__ALTER_SCORE.sql new file mode 100644 index 000000000..e831c325e --- /dev/null +++ b/mallinkAdmin/src/main/resources/db/migration/V201907301905__ALTER_SCORE.sql @@ -0,0 +1,4 @@ +update wx_score_rules set rules =JSON_ARRAY_APPEND(rules,'$[1].childs','{"desc": "线上交易0元", "step": 1, "limit": 0, "score": 0, "title": "数码家电", "businessId": 11}') +where type=2 and json_contains_path(rules,'one','$[1].childs')=1; +update wx_score_rules set rules =JSON_ARRAY_APPEND(rules,'$[1].childs','{"desc": "线上交易0元", "step": 1, "limit": 0, "score": 0, "title": "数码家电", "businessId": 11}') +where type=1 and json_contains_path(rules,'one','$[1].childs')=1; \ No newline at end of file