|
@@ -1,6 +1,7 @@
|
|
|
package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
import com.ym.mec.biz.dal.dao.MusicGroupDao;
|
|
|
+import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDao;
|
|
|
import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDetailDao;
|
|
|
import com.ym.mec.biz.dal.dao.MusicGroupStudentFeeDao;
|
|
|
import com.ym.mec.biz.dal.dto.SimpleUserDto;
|
|
@@ -32,6 +33,8 @@ public class MusicGroupPaymentCalenderDetailServiceImpl extends BaseServiceImpl<
|
|
|
@Autowired
|
|
|
private MusicGroupPaymentCalenderDetailDao musicGroupPaymentCalenderDetailDao;
|
|
|
@Autowired
|
|
|
+ private MusicGroupPaymentCalenderDao musicGroupPaymentCalenderDao;
|
|
|
+ @Autowired
|
|
|
private MusicGroupDao musicGroupDao;
|
|
|
@Autowired
|
|
|
private MusicGroupStudentFeeDao musicGroupStudentFeeDao;
|
|
@@ -78,15 +81,19 @@ public class MusicGroupPaymentCalenderDetailServiceImpl extends BaseServiceImpl<
|
|
|
return;
|
|
|
}
|
|
|
Date date = new Date();
|
|
|
- /*Iterator<MusicGroupPaymentCalenderDetail> iterator = calenderDetails.iterator();
|
|
|
+ Iterator<MusicGroupPaymentCalenderDetail> iterator = calenderDetails.iterator();
|
|
|
MusicGroupPaymentCalenderDetail next;
|
|
|
while(iterator.hasNext()){
|
|
|
next = iterator.next();
|
|
|
+ int count1 = musicGroupPaymentCalenderDao.queryIntersectionByPaymentDate(next.getMusicGroupId(),date,date);
|
|
|
int count = musicGroupPaymentCalenderDetailDao.queryIntersectionByPaymentDate(next.getMusicGroupId(),next.getUserId());
|
|
|
- if(count > 0){
|
|
|
+ if(count > 0 || count1 > 0){
|
|
|
iterator.remove();
|
|
|
}
|
|
|
- }*/
|
|
|
+ }
|
|
|
+ if(calenderDetails.size() == 0){
|
|
|
+ return;
|
|
|
+ }
|
|
|
String musicGroupId = calenderDetails.get(0).getMusicGroupId();
|
|
|
calenderDetails.forEach(e->{
|
|
|
e.setUpdateTime(date);
|