|
@@ -196,8 +196,9 @@ public class MusicGroupPaymentCalenderDetailServiceImpl extends BaseServiceImpl<
|
|
|
throw new BizException("数据已存在");
|
|
|
}
|
|
|
Date date = new Date();
|
|
|
+ Integer countOpenPayment = musicGroupPaymentCalenderDetailDao.countOpenPayment(calender.getMusicGroupId(), userId);
|
|
|
MusicGroupStudentFee studentFee = musicGroupStudentFeeDao.findByUser(userId, calender.getMusicGroupId());
|
|
|
- if(studentFee.getPaymentStatus() != PAID_COMPLETED){
|
|
|
+ if(countOpenPayment > 0){
|
|
|
throw new BizException("操作失败: 学员有未完成的缴费");
|
|
|
}
|
|
|
calender.setUpdateTime(date);
|