|
@@ -131,11 +131,15 @@ public class MusicGroupPaymentCalenderDetailServiceImpl extends BaseServiceImpl<
|
|
|
MusicGroupPaymentCalenderDetail next;
|
|
|
while(iterator.hasNext()){
|
|
|
next = iterator.next();
|
|
|
- int count1 = musicGroupPaymentCalenderDao.queryIntersectionByPaymentDate(next.getMusicGroupId(),startPaymentDate,deadlinePaymentDate);
|
|
|
+ Integer countOpenPayment = musicGroupPaymentCalenderDetailDao.countOpenPayment(next.getMusicGroupId(), next.getUserId());
|
|
|
+ if(countOpenPayment > 0){
|
|
|
+ iterator.remove();
|
|
|
+ }
|
|
|
+ /*int count1 = musicGroupPaymentCalenderDao.queryIntersectionByPaymentDate(next.getMusicGroupId(),startPaymentDate,deadlinePaymentDate);
|
|
|
int count = musicGroupPaymentCalenderDetailDao.queryIntersectionByPaymentDate(next.getMusicGroupId(),next.getUserId());
|
|
|
if(count > 0 || count1 > 0){
|
|
|
iterator.remove();
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
if(calenderDetails.size() == 0){
|
|
|
return "操作失败,学员有未完成的订单";
|