|
@@ -30,7 +30,6 @@ import java.time.LocalDate;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
-import java.util.stream.Stream;
|
|
|
|
|
|
|
|
import static com.ym.mec.biz.dal.enums.IndexDataType.CLOUD_NEW_STUDENT_NUM;
|
|
import static com.ym.mec.biz.dal.enums.IndexDataType.CLOUD_NEW_STUDENT_NUM;
|
|
|
|
|
|
@@ -41,36 +40,28 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
private StudentDao studentDao;
|
|
private StudentDao studentDao;
|
|
@Autowired
|
|
@Autowired
|
|
private TeacherDao teacherDao;
|
|
private TeacherDao teacherDao;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private CourseScheduleStudentPaymentDao courseScheduleStudentPaymentDao;
|
|
private CourseScheduleStudentPaymentDao courseScheduleStudentPaymentDao;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private StudentRegistrationDao studentRegistrationDao;
|
|
private StudentRegistrationDao studentRegistrationDao;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private MusicGroupDao musicGroupDao;
|
|
private MusicGroupDao musicGroupDao;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private PracticeGroupDao practiceGroupDao;
|
|
private PracticeGroupDao practiceGroupDao;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private MemberRankSettingDao memberRankSettingDao;
|
|
private MemberRankSettingDao memberRankSettingDao;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private SysConfigDao sysConfigDao;
|
|
private SysConfigDao sysConfigDao;
|
|
@Autowired
|
|
@Autowired
|
|
private SysMessageService sysMessageService;
|
|
private SysMessageService sysMessageService;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private SysMusicCompareRecordDao sysMusicCompareRecordDao;
|
|
private SysMusicCompareRecordDao sysMusicCompareRecordDao;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private CloudTeacherDao cloudTeacherDao;
|
|
private CloudTeacherDao cloudTeacherDao;
|
|
-
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private CloudTeacherOrderDao cloudTeacherOrderDao;
|
|
@Autowired
|
|
@Autowired
|
|
private OrganizationDao organizationDao;
|
|
private OrganizationDao organizationDao;
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IndexBaseMonthDataDao indexBaseMonthDataDao;
|
|
private IndexBaseMonthDataDao indexBaseMonthDataDao;
|
|
|
|
|
|
@@ -909,7 +900,21 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Object countCloudTeacherActiveDetail(CloudTeacherActiveQueryInfo queryInfo) {
|
|
public Object countCloudTeacherActiveDetail(CloudTeacherActiveQueryInfo queryInfo) {
|
|
|
|
+ PageInfo<CloudTeacherActiveTargetDetailDto> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows());
|
|
|
|
+ Map<String, Object> params = new HashMap<String, Object>();
|
|
|
|
+ MapUtil.populateMap(params, queryInfo);
|
|
|
|
|
|
- return null;
|
|
|
|
|
|
+ List<CloudTeacherActiveTargetDetailDto> dataList = null;
|
|
|
|
+ int count = cloudTeacherOrderDao.countCloudTeacherActiveDetail(params);
|
|
|
|
+ if (count > 0) {
|
|
|
|
+ pageInfo.setTotal(count);
|
|
|
|
+ params.put("offset", pageInfo.getOffset());
|
|
|
|
+ dataList = cloudTeacherOrderDao.queryCloudTeacherActiveDetail(params);
|
|
|
|
+ }
|
|
|
|
+ if (count == 0) {
|
|
|
|
+ dataList = new ArrayList<>();
|
|
|
|
+ }
|
|
|
|
+ pageInfo.setRows(dataList);
|
|
|
|
+ return pageInfo;
|
|
}
|
|
}
|
|
}
|
|
}
|