|
@@ -392,6 +392,30 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public List<StudentPaymentOrderDetail> queryRefundsDetail(Integer studentId, String musicGroupId) {
|
|
|
+
|
|
|
+ List<StudentPaymentOrderDetail> detailList = queryFeeDetail(studentId, musicGroupId);
|
|
|
+
|
|
|
+ Map<OrderDetailTypeEnum,List<StudentPaymentOrderDetail>> detailMap = detailList.stream().collect(Collectors.groupingBy(StudentPaymentOrderDetail :: getType));
|
|
|
+
|
|
|
+ Map<String, BigDecimal> map = new HashMap<String, BigDecimal>();
|
|
|
+
|
|
|
+ if(detailMap.containsKey(OrderDetailTypeEnum.MUSICAL)){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ map.put(OrderDetailTypeEnum.MUSICAL.getCode(), BigDecimal.ZERO);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ map.put(OrderDetailTypeEnum.MAINTENANCE.getCode(), BigDecimal.valueOf(300));
|
|
|
+ map.put(OrderDetailTypeEnum.ACCESSORIES.getCode(), BigDecimal.valueOf(300));
|
|
|
+ map.put(OrderDetailTypeEnum.CLOUD_TEACHER.getCode(), BigDecimal.valueOf(300));
|
|
|
+ map.put(OrderDetailTypeEnum.COURSE.getCode(), BigDecimal.valueOf(300));
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public List<Map<String, Object>> getNoClassStuBySubjectId(String musicGroupId, String actualSubjectId) {
|
|
|
List<StudentRegistration> students = studentRegistrationDao.getNoClassStuBySubjectId(musicGroupId, actualSubjectId);
|
|
|
List<Map<String, Object>> mapArrayList = new ArrayList<>();
|