UseIntegralService.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package com.iamberry.wechat.face.integral;
  2. import com.iamberry.wechat.core.entity.PageBean;
  3. import com.iamberry.wechat.core.entity.ResultMsg;
  4. import com.iamberry.wechat.core.entity.integral.*;
  5. import com.sun.org.apache.xpath.internal.operations.Bool;
  6. import java.util.List;
  7. public interface UseIntegralService {
  8. /**
  9. * 全部积分记录
  10. * @param useIntegral
  11. * @return
  12. */
  13. List<UseIntegral> listIntegralInfo(UseIntegral useIntegral);
  14. /**
  15. * 获得的总积分数
  16. * @param userOpenId
  17. * @return
  18. */
  19. Integer getGainIntegralCount(String userOpenId);
  20. /**
  21. * 使用的总积分数
  22. * @param openid
  23. * @return
  24. */
  25. Integer getUseIntegralCount(String openid);
  26. /**
  27. * 待入账的总积分数
  28. * @param userOpenId
  29. * @return
  30. */
  31. Integer getStayIntegralCount(String userOpenId);
  32. /**
  33. * 查询积分来源信息
  34. * @param integralConfig
  35. * @return
  36. */
  37. List<IntegralConfig> listIntegralConfig(IntegralConfig integralConfig);
  38. /**
  39. * 获取会员信息.会员等级名称
  40. * @param openId
  41. * @return
  42. */
  43. MemberIntegral getMemberInfoAndRankName(String openId);
  44. /**
  45. * 查询会员等级信息
  46. * @return
  47. */
  48. List<RankRule> getRankRule();
  49. /**
  50. * 定时任务
  51. * 待入账积分更改到已入账操作
  52. * @return
  53. */
  54. boolean updateIntegralStayToAlready();
  55. /**
  56. * 查询待入账积分的集合
  57. * @return
  58. */
  59. List<StayIntegral> listStayIntegral(StayIntegral stayIntegral);
  60. /**
  61. * 查询所有收入支出积分记录
  62. * @return
  63. */
  64. List<UseIntegral> listUseIntegral(UseIntegral useIntegral);
  65. /**
  66. * 查询所有收入支出积分记录总条数
  67. * @return
  68. */
  69. Integer listUseIntegralCount(UseIntegral useIntegral);
  70. /**
  71. * 查询所有待入账积分记录
  72. * @return
  73. */
  74. List<StayIntegral> listAdminStayIntegral(StayIntegral stayIntegral);
  75. /**
  76. * 查询所有待入账积分记录总数
  77. * @return
  78. */
  79. Integer listAdminStayIntegralCount(StayIntegral stayIntegral);
  80. /**
  81. * 修改待入账积分记录
  82. * @param stayIntegral
  83. * @return
  84. */
  85. Integer updatestayIntegralStatus(StayIntegral stayIntegral);
  86. }