源战役
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 regels
1.1 KiB

4 weken geleden
  1. %%% ----------------------------------------------------
  2. %%% @Module: growth_score
  3. %%% @Author: yanweifan
  4. %%% @Description: 成长积分活动头文件
  5. %%% @Created: 2019/04/24
  6. %%% ----------------------------------------------------
  7. %% 活动State
  8. -record (growth_score_status, {
  9. score_map = #{}, %% 分数字典 #{stype => #{role_id => score}}
  10. receive_reward_map = #{} %% 奖励字典 #{stype => #{role_id => [reward_id]}} 存放已领取的奖励档次id
  11. }).
  12. -define(sql_select_custom_act_growth_score,
  13. "select `role_id`, `sub_type`, `score` from `custom_act_growth_score`").
  14. -define(sql_select_custom_act_growth_score_reward,
  15. "select `role_id`, `sub_type`, `reward_state` from `custom_act_growth_score_reward`").
  16. -define(sql_replace_custom_act_growth_score_reward,
  17. "replace into `custom_act_growth_score_reward` (`role_id`, `sub_type`, `reward_state`) values (~p, ~p, '~s') ").
  18. -define(sql_delete_custom_act_growth_score,
  19. "delete from `custom_act_growth_score` where `sub_type` = ~p ").
  20. -define(sql_delete_custom_act_growth_score_reward,
  21. "delete from `custom_act_growth_score_reward` where `sub_type` = ~p ").