|
@@ -314,7 +314,7 @@ public class StudentVisitServiceImpl extends BaseServiceImpl<Integer, StudentVis
|
|
throw new BizException("手机号{}不存在",cost.getPhone());
|
|
throw new BizException("手机号{}不存在",cost.getPhone());
|
|
}
|
|
}
|
|
cost.setStudentId(user.getId());
|
|
cost.setStudentId(user.getId());
|
|
- StudentRegistration studentRegistration = studentRegistrationDao.queryByUserIdAndMusicGroupId(cost.getStudentId(), cost.getMusicGroupId());
|
|
|
|
|
|
+ StudentRegistration studentRegistration = studentRegistrationDao.getStudentRegister(cost.getMusicGroupId(),cost.getStudentId());
|
|
if(Objects.isNull(studentRegistration)){
|
|
if(Objects.isNull(studentRegistration)){
|
|
throw new BizException("学员{}不在乐团{}中,无需回访",cost.getStudentId(),cost.getMusicGroupId());
|
|
throw new BizException("学员{}不在乐团{}中,无需回访",cost.getStudentId(),cost.getMusicGroupId());
|
|
}
|
|
}
|