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