|
@@ -13,6 +13,7 @@ import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
import com.ym.mec.util.date.DateUtil;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -59,8 +60,9 @@ public class MusicGroupSchoolTermCourseDetailServiceImpl extends BaseServiceImpl
|
|
|
throw new BizException("操作失败:该功能只适用于系统收费团");
|
|
|
}
|
|
|
//校验当前乐团是否所有学员都在班
|
|
|
- if(!studentRegistrationDao.checkHasNotClass(musicGroupId)){
|
|
|
- throw new BizException("操作失败:请确保所有在读学员都在班级");
|
|
|
+ String notClassName = studentRegistrationDao.getNotClassName(musicGroupId);
|
|
|
+ if(StringUtils.isNotEmpty(notClassName)){
|
|
|
+ throw new BizException("操作失败:{} 学员未在任何班级",notClassName);
|
|
|
}
|
|
|
MusicGroupSchoolTermCourseDetail courseDetail = musicGroupSchoolTermCourseDetailDao.
|
|
|
findByCourseDateAndMusicGroupId(musicGroupId,null,0);
|