Просмотр исходного кода

Merge branch 'release_real_202101' of https://git.malls.iformall.com/server/formallProject into release_real_202101

release_toaliyun_real
xiaohanzi 5 лет назад
Родитель
Сommit
e9c1152f40
1 измененных файлов: 11 добавлений и 7 удалений
  1. +11
    -7
      mallinkAdmin/src/main/resources/db/migration/V202101250001__user_sign_update_wx_score_rules.sql

+ 11
- 7
mallinkAdmin/src/main/resources/db/migration/V202101250001__user_sign_update_wx_score_rules.sql Просмотреть файл

@@ -1,8 +1,12 @@
update wx_score_rules set rules = concat(SUBSTRING(rules,1,char_length(rules)-1),
",{\"id\": 17, \"desc\": \"每日签到\", \"step\": 1, \"limit\": 1, \"score\": 0}",
",{\"id\": 18, \"desc\": \"连续签到7天\", \"step\": 1, \"limit\": 1, \"score\": 0}",
",{\"id\": 19, \"desc\": \"连续签到14天\", \"step\": 1, \"limit\": 1, \"score\": 0}",
",{\"id\": 20, \"desc\": \"连续签到28天\", \"step\": 1, \"limit\": 1, \"score\": 0}",
RIGHT(rules,1)) where type = 2
--type=2 积分规则,追加签到规则
update wx_score_rules set rules = JSON_ARRAY_APPEND(rules, '$',CAST('{"id": 17, "desc": "每日签到", "step": 1, "limit": 1, "score": 0}' AS JSON))
where type = 2;
update wx_score_rules set rules = JSON_ARRAY_APPEND(rules, '$',CAST('{"id": 18, "desc": "连续签到7天", "step": 1, "limit": 1, "score": 0}' AS JSON))
where type = 2;
update wx_score_rules set rules = JSON_ARRAY_APPEND(rules, '$',CAST('{"id": 19, "desc": "连续签到14天", "step": 1, "limit": 1, "score": 0}' AS JSON))
where type = 2;
update wx_score_rules set rules = JSON_ARRAY_APPEND(rules, '$',CAST('{"id": 20, "desc": "连续签到28天", "step": 1, "limit": 1, "score": 0}' AS JSON))
where type = 2;

--type=2 积分规则,每日登陆去掉-- 缓存--缓存--缓存
--type=2 积分规则,每日登陆去掉-- 缓存--缓存--缓存
update wx_score_rules set rules = JSON_REMOVE(rules, "$[0]") where type = 2;

Загрузка…
Отмена
Сохранить