StudentRegistrationService.java 3.8 KB

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