|
@@ -1,6 +1,7 @@
|
|
|
package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
import com.ym.mec.biz.dal.dao.ClassGroupDao;
|
|
|
+import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDao;
|
|
|
import com.ym.mec.biz.dal.dao.TeacherDao;
|
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
@@ -12,14 +13,14 @@ import com.ym.mec.common.entity.ImGroupModel;
|
|
|
import com.ym.mec.common.page.PageInfo;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
|
-
|
|
|
-import io.swagger.annotations.ApiImplicitParams;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
-import java.time.*;
|
|
|
+import java.time.Instant;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.time.ZoneId;
|
|
|
import java.util.*;
|
|
|
|
|
|
@Service
|
|
@@ -30,6 +31,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
@Autowired
|
|
|
private TeacherDao teacherDao;
|
|
|
@Autowired
|
|
|
+ private MusicGroupPaymentCalenderDao musicGroupPaymentCalenderDao;
|
|
|
+ @Autowired
|
|
|
private ClassGroupRelationService classGroupRelationService;
|
|
|
@Autowired
|
|
|
private ClassGroupStudentMapperService classGroupStudentMapperService;
|
|
@@ -326,7 +329,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
List<CourseListDto> courseListDtos = classGroupDao.queryCoursePage(userId);
|
|
|
courseListDtos.forEach(e->{
|
|
|
if("VIP".equals(e.getTeachMode())){
|
|
|
- classGroupDao.findVipStuNames(e.getMusicGroupId());
|
|
|
+ e.setStudentNames(classGroupDao.findVipStuNames(e.getMusicGroupId()));
|
|
|
+ }else {
|
|
|
+ List<MusicGroupPaymentCalender> musicGroupPaymentCalenders = musicGroupPaymentCalenderDao.findByMusicGroupId(e.getMusicGroupId());
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
return classGroupDao.queryCoursePage(userId);
|