|
@@ -1618,6 +1618,11 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean batchDelRegs(String musicGroupId, List<Integer> userIds) {
|
|
|
List<StudentRegistration> registrations = studentRegistrationDao.findStudentListByUserIdList(musicGroupId, userIds);
|
|
|
+ for (StudentRegistration registration : registrations) {
|
|
|
+ if(registration.getPaymentStatus().equals(PaymentStatusEnum.OPEN)||registration.getPaymentStatus().equals(PaymentStatusEnum.YES)){
|
|
|
+ throw new BizException("开启缴费/已缴费的学员不能删除");
|
|
|
+ }
|
|
|
+ }
|
|
|
if (registrations.size() <= 0) {
|
|
|
throw new BizException("删除的学员不存在,请核查");
|
|
|
}
|