|
@@ -685,7 +685,11 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
String[] courseNames=new String[courseSchedules1.size()];
|
|
|
for (int i=0;i<courseSchedules1.size();i++) {
|
|
|
if(courseSchedules1.get(i).getGroupType().equals(GroupType.PRACTICE)){
|
|
|
- throw new BizException("指派的老师在预约的时间段内存在陪练课");
|
|
|
+ if(courseSchedules1.get(i).getMusicGroupId().equals(practiceGroup.getId().toString())) {
|
|
|
+ throw new BizException("指派的老师在预约的时间段内存在陪练课");
|
|
|
+ }else{
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
courseDates[i]=DateUtil.dateToString(courseSchedules1.get(i).getStartClassTime(),"yyyy-MM-dd HH:mm:ss");
|
|
|
courseNames[i]=courseSchedules1.get(i).getName();
|