ActivityUserMapperService.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. package com.ym.mec.biz.service;
  2. import com.ym.mec.biz.dal.dto.ActivityQueryDto;
  3. import com.ym.mec.biz.dal.dto.ActivityStudentAdjustDto;
  4. import com.ym.mec.biz.dal.dto.ActivityStudentDto;
  5. import com.ym.mec.biz.dal.dto.ActivityUserMapperAddDto;
  6. import com.ym.mec.biz.dal.entity.ActivityUserMapper;
  7. import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
  8. import com.ym.mec.biz.dal.entity.StudentPaymentOrderDetail;
  9. import com.ym.mec.biz.dal.page.ActivityStudentQueryInfo;
  10. import com.ym.mec.common.page.PageInfo;
  11. import com.ym.mec.common.service.BaseService;
  12. import org.apache.ibatis.annotations.Param;
  13. import java.math.BigDecimal;
  14. import java.util.List;
  15. import java.util.Map;
  16. public interface ActivityUserMapperService extends BaseService<Integer, ActivityUserMapper> {
  17. /**
  18. * @description:
  19. * @param activityId
  20. * @param studentIds
  21. * @param type
  22. * @return java.util.List<com.ym.mec.biz.dal.entity.ActivityUserMapper>
  23. * @author zx
  24. * @date 2021/10/15 15:48
  25. */
  26. List<ActivityUserMapper> findByStudentIdList(Integer activityId, String studentIds, String type);
  27. /**
  28. * @description: 消耗学员排课资格
  29. * @param activityUserMapperIds
  30. * @param studentIds
  31. * @param type
  32. * @return void
  33. * @author zx
  34. * @date 2021/10/15 15:51
  35. */
  36. int use(String activityUserMapperIds, String studentIds, String type,Long groupId);
  37. /**
  38. * @description:
  39. * @param groupId
  40. * @param studentId
  41. * @return com.ym.mec.biz.dal.entity.ActivityUserMapper
  42. * @author zx
  43. * @date 2021/10/15 16:16
  44. */
  45. ActivityUserMapper findByStudentId(Long groupId, Integer studentId);
  46. /**
  47. * @description: 获取活动购买次数
  48. * @param activityId
  49. * @param userId
  50. * @return int
  51. * @author zx
  52. * @date 2021/10/15 16:18
  53. */
  54. int countActivityBuyNum(Integer activityId, Integer userId);
  55. /**
  56. * @description: 批量新增
  57. * @param activityUserMappers
  58. * @return void
  59. * @author zx
  60. * @date 2021/10/20 13:37
  61. */
  62. void batchInsert(List<ActivityUserMapper> activityUserMappers);
  63. /**
  64. * @description:
  65. * @param groupId
  66. * @param groupType
  67. * @return com.ym.mec.biz.dal.entity.ActivityUserMapper
  68. * @author zx
  69. * @date 2021/10/22 17:35
  70. */
  71. ActivityUserMapper findVipUserMapper(Long groupId,String groupType,Integer studentId);
  72. /**
  73. * @description: 获取学员活动排课资格列表
  74. * @param queryInfo
  75. * @return java.lang.Object
  76. * @author zx
  77. * @date 2021/11/15 16:34
  78. */
  79. PageInfo<ActivityStudentDto> queryActivityUserMapper(ActivityStudentQueryInfo queryInfo);
  80. /**
  81. * @description: 添加排课资格
  82. * @param activityUserMapperAddDto
  83. * @return void
  84. * @author zx
  85. * @date 2021/11/18 11:19
  86. */
  87. void add(ActivityUserMapperAddDto activityUserMapperAddDto);
  88. /**
  89. * @description: 取消排课资格
  90. * @param activityUserMapperId
  91. * @param memo
  92. * @return void
  93. * @author zx
  94. * @date 2021/11/18 11:19
  95. */
  96. void cut(Integer activityUserMapperId, String memo, BigDecimal amount);
  97. /**
  98. * @description: 生成排课资格
  99. * @param studentPaymentOrder
  100. * @param activity
  101. * @return void
  102. * @author zx
  103. * @date 2021/12/29 17:28
  104. */
  105. void addOrderDetail2Activity(StudentPaymentOrder studentPaymentOrder, List<StudentPaymentOrderDetail> activity);
  106. //获取学员未排课资格
  107. Map<String,Object> getStudentNoMapperInfo();
  108. }