源战役
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.

17 line
703 B

  1. %%%--------------------------------------
  2. %%% @Module : joy_wish.hrl
  3. %%% @Author : lhy
  4. %%% @Created : 2019-05-24
  5. %%% @Description: 欢乐许愿
  6. %%%--------------------------------------
  7. -record(joy_wish, {
  8. wish_times = #{} %% 活动开启期间的许愿次数 {Type, SubType} => Times
  9. }).
  10. -define(sql_joy_wish_select,
  11. <<"select `act_type`, `sub_type`, `times` from `custom_act_joy_wish_times` where `role_id` = ~p">>).
  12. -define(sql_joy_wish_replace,
  13. <<"replace into `custom_act_joy_wish_times` (`role_id`,`act_type`,`sub_type`,`times`) values(~p,~p,~p,~p)">>).
  14. -define(sql_joy_wish_delete,
  15. <<"delete from `custom_act_joy_wish_times` where act_type=~p and sub_type = ~p ">>).