StudentRegistrationService.java 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. package com.ym.mec.biz.service;
  2. import java.math.BigDecimal;
  3. import java.util.List;
  4. import java.util.Map;
  5. import com.ym.mec.biz.dal.dto.StudentApplyDetailDto;
  6. import com.ym.mec.biz.dal.dto.StudentFeeDetailDto;
  7. import com.ym.mec.biz.dal.dto.StudentFeeDto;
  8. import com.ym.mec.biz.dal.dto.StudentInfo;
  9. import com.ym.mec.biz.dal.entity.Goods;
  10. import com.ym.mec.biz.dal.entity.MusicGroupSubjectGoodsGroup;
  11. import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
  12. import com.ym.mec.biz.dal.entity.StudentRegistration;
  13. import com.ym.mec.biz.dal.page.StudentRegistrationQueryInfo;
  14. import com.ym.mec.common.page.PageInfo;
  15. import com.ym.mec.common.service.BaseService;
  16. import org.apache.ibatis.annotations.Param;
  17. public interface StudentRegistrationService extends BaseService<Long, StudentRegistration> {
  18. /**
  19. * 获取乐团学员报名详情
  20. *
  21. * @param queryInfo
  22. * @return
  23. */
  24. PageInfo<StudentApplyDetailDto> queryStudentDetailPage(StudentRegistrationQueryInfo queryInfo);
  25. /**
  26. * 批量调剂
  27. *
  28. * @param userId
  29. * @param subId
  30. * @return
  31. */
  32. Integer batchUpdateSubject(String userId, Integer subId,String musicGroupId);
  33. /**
  34. * 学生报名缴费金额详情
  35. *
  36. * @param studentId
  37. * @param musicGroupId
  38. * @return
  39. */
  40. StudentFeeDetailDto queryFeeDetail(Integer studentId, String musicGroupId);
  41. /**
  42. * 获取未分配的班级的学生
  43. *
  44. * @param musicGroupId 乐团id
  45. * @param actualSubjectId 科目id
  46. * @return
  47. */
  48. List<Map<String,Object>> getNoClassStuBySubjectId(String musicGroupId, String actualSubjectId);
  49. /**
  50. * 获取乐团声部未分配学生统计
  51. *
  52. * @param musicGroupId
  53. * @return
  54. */
  55. List<Map<Integer,Long>> getNoClassStuCountBySubjectId(String musicGroupId);
  56. /**
  57. * 根据user_id 和 乐团id更新
  58. *
  59. * @param studentRegistration
  60. * @return
  61. */
  62. Integer updateByUserIdAndMusicGroupId(StudentRegistration studentRegistration);
  63. /**
  64. * 添加学生报名信息
  65. * @param studentRegistration
  66. * @return
  67. */
  68. StudentRegistration addStudent(StudentRegistration studentRegistration);
  69. /**
  70. * 查询学生信息
  71. * @param userId
  72. * @return
  73. */
  74. StudentInfo queryStudentInfo(Integer userId);
  75. /**
  76. * 学生注册缴费订单
  77. * @param userId
  78. * @param amount
  79. * @param courseFee
  80. * @param goodsGroups
  81. * @param goodsList
  82. * @return
  83. */
  84. StudentPaymentOrder addOrder(Integer userId, BigDecimal amount, String orderNo, String paymentChannel, BigDecimal courseFee,
  85. List<MusicGroupSubjectGoodsGroup> goodsGroups, List<Goods> goodsList, List<Goods> otherGoodsList, String musicGroupId);
  86. /**
  87. * 学生注册缴费重新下订单
  88. * @param userId
  89. * @param amount
  90. * @param courseFee
  91. * @param goodsGroups
  92. * @param goodsList
  93. * @return
  94. */
  95. StudentPaymentOrder reAddOrder(
  96. Integer userId, BigDecimal amount, String orderNo, String paymentChannel, BigDecimal courseFee,
  97. List<MusicGroupSubjectGoodsGroup> goodsGroups, List<Goods> goodsList, List<Goods> otherGoodsList,
  98. String musicGroupId,StudentPaymentOrder oldOrder);
  99. /**
  100. * 查询用户指定乐团的报名信息
  101. * @param userId 用户编号
  102. * @param musicGroupId 乐团编号
  103. * @return
  104. */
  105. StudentRegistration queryByUserIdAndMusicGroupId(Integer userId, String musicGroupId);
  106. /**
  107. * 根据乐团id,手机查询乐团注册信息
  108. * @param musicGroupId
  109. * @param parentsPhone
  110. * @return
  111. */
  112. StudentRegistration getByPhoneAndMusicGroupId(String musicGroupId, String parentsPhone);
  113. /**
  114. * 乐团插入新学员
  115. * @param studentRegistration
  116. * @return
  117. */
  118. Integer insertStudent(StudentRegistration studentRegistration) throws Exception;
  119. /**
  120. * 获取班级学生
  121. * @param musicGroupId
  122. * @param classGroupId
  123. * @return
  124. */
  125. List<StudentRegistration> findClassGroupStu(String musicGroupId, Integer classGroupId);
  126. /**
  127. * 更新报名订单
  128. * @param studentPaymentOrder
  129. * @return
  130. */
  131. StudentPaymentOrder updateApplyOrder(StudentPaymentOrder studentPaymentOrder);
  132. /**
  133. * 获取乐团科目的学生
  134. *
  135. * @param musicGroupId 乐团id
  136. * @param actualSubjectId 科目id
  137. * @return
  138. */
  139. List<StudentRegistration> getMusicGroupStu(String musicGroupId, Integer actualSubjectId);
  140. /**
  141. * 根据id list 查询报名学生
  142. * @param idList
  143. * @return
  144. */
  145. List<StudentRegistration> findStudentListByIdList(List<Long> idList);
  146. /**
  147. * 批量插入
  148. * @param studentRegistrationList
  149. * @return
  150. */
  151. int batchInsert(List<StudentRegistration> studentRegistrationList);
  152. }