|
@@ -1915,7 +1915,6 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
studentRegistration.setSurplusCourseFee(BigDecimal.ZERO);
|
|
|
studentRegistration.setHasCloudTeacher(0);
|
|
|
studentRegistration.setUpdateTime(date);
|
|
|
-
|
|
|
studentRegistrationDao.update(studentRegistration);
|
|
|
|
|
|
//更新服务指标、运营指标
|
|
@@ -2009,7 +2008,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
throw new BizException("非会员乐团不允许退云教练");
|
|
|
}
|
|
|
//删除乐团会员时长
|
|
|
- studentDao.cleanMusicMember(userId);
|
|
|
+ studentRegistrationDao.cleanMusicMember(userId,null);
|
|
|
//退云教练费用
|
|
|
if (cloudTeacherAmount != null) {
|
|
|
Date nowDate = new Date();
|
|
@@ -2035,12 +2034,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
}
|
|
|
}else {
|
|
|
//删除乐团会员时长
|
|
|
- Student student = studentDao.get(userId);
|
|
|
- if(StringUtils.isNotEmpty(student.getMemberMusicGroupId())){
|
|
|
- if(student.getMemberMusicGroupId().equals(musicGroupId)){
|
|
|
- studentDao.cleanMusicMember(userId);
|
|
|
- }
|
|
|
- }
|
|
|
+ studentRegistrationDao.cleanMusicMember(userId,musicGroupId);
|
|
|
}
|
|
|
|
|
|
if (isRefundCourseFee) {
|
|
@@ -2202,7 +2196,6 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
studentRegistration.setSurplusCourseFee(BigDecimal.ZERO);
|
|
|
studentRegistration.setHasCloudTeacher(0);
|
|
|
studentRegistration.setUpdateTime(date);
|
|
|
-
|
|
|
studentRegistrationDao.update(studentRegistration);
|
|
|
|
|
|
//更新服务指标、运营指标
|
|
@@ -2295,7 +2288,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
throw new BizException("非会员乐团不允许退云教练");
|
|
|
}
|
|
|
//删除乐团会员时长
|
|
|
- studentDao.cleanMusicMember(userId);
|
|
|
+ studentRegistrationDao.cleanMusicMember(userId,null);
|
|
|
//退云教练费用
|
|
|
if (cloudTeacherAmount != null) {
|
|
|
Date nowDate = new Date();
|
|
@@ -2321,12 +2314,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
}
|
|
|
}else {
|
|
|
//删除乐团会员时长
|
|
|
- Student student = studentDao.get(userId);
|
|
|
- if(StringUtils.isNotEmpty(student.getMemberMusicGroupId())){
|
|
|
- if(student.getMemberMusicGroupId().equals(musicGroupId)){
|
|
|
- studentDao.cleanMusicMember(userId);
|
|
|
- }
|
|
|
- }
|
|
|
+ studentRegistrationDao.cleanMusicMember(userId,musicGroupId);
|
|
|
}
|
|
|
|
|
|
if (isRefundCourseFee) {
|