StudentRegistrationService.java 5.3 KB

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