|
|
@@ -37,8 +37,6 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
@Autowired
|
|
|
private OrganizationDao organizationDao;
|
|
|
@Autowired
|
|
|
- private MusicGroupStudentFeeDao musicGroupStudentFeeDao;
|
|
|
- @Autowired
|
|
|
private CourseScheduleStudentPaymentDao scheduleStudentPaymentDao;
|
|
|
@Autowired
|
|
|
private TeacherDao teacherDao;
|
|
|
@@ -68,6 +66,8 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
private MusicGroupQuitDao musicGroupQuitDao;
|
|
|
@Autowired
|
|
|
private SubjectChangeDao subjectChangeDao;
|
|
|
+ @Autowired
|
|
|
+ private MusicGroupPaymentCalenderDao musicGroupPaymentCalenderDao;
|
|
|
|
|
|
@Override
|
|
|
public PageInfo<StudentManageListDto> findStudentsByOrganId(StudentManageQueryInfo queryInfo) {
|
|
|
@@ -341,7 +341,17 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
PageInfo<MusicGroupStudentsDto> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows());
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
MapUtil.populateMap(params, queryInfo);
|
|
|
-
|
|
|
+// if(StringUtils.isNotEmpty(queryInfo.getPaymentStatus())){
|
|
|
+// List<Integer> userIds;
|
|
|
+// if("NON_PAYMENT".equals(queryInfo.getPaymentStatus())){
|
|
|
+// userIds = musicGroupPaymentCalenderDao.queryUserByNoPayment(queryInfo.getClassGroupId());
|
|
|
+// }else {
|
|
|
+// userIds = musicGroupPaymentCalenderDao.queryUserByPayment(queryInfo.getClassGroupId());
|
|
|
+// }
|
|
|
+// if(userIds != null && userIds.size() > 0){
|
|
|
+// params.put("userIds",userIds);
|
|
|
+// }
|
|
|
+// }
|
|
|
List<MusicGroupStudentsDto> dataList = null;
|
|
|
int count = studentManageDao.countMusicGroupStudent(params);
|
|
|
if (queryInfo.getIsExport() && count > 50000) {
|
|
|
@@ -351,9 +361,11 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
pageInfo.setTotal(count);
|
|
|
params.put("offset", pageInfo.getOffset());
|
|
|
dataList = studentManageDao.queryMusicGroupStudent(params);
|
|
|
-// Map<Integer,String> maps = MapUtil.convertIntegerMap(musicGroupStudentFeeDao.findPaymentStatusMap(queryInfo.getMusicGroupId()));
|
|
|
-// dataList.forEach(e->{
|
|
|
-// e.setPaymentStatus(maps.get(e.getUserId()));
|
|
|
+// Set<Integer> collect = dataList.stream().map(e -> e.getUserId()).collect(Collectors.toSet());
|
|
|
+// Map<Integer,String> paymentStatusMap = MapUtil.convertIntegerMap(
|
|
|
+// musicGroupPaymentCalenderDao.queryUserCoursePaymentStatus(collect,queryInfo.getMusicGroupId()));
|
|
|
+// dataList.forEach(e -> {
|
|
|
+// e.setPaymentStatus(paymentStatusMap.get(e.getUserId()));
|
|
|
// });
|
|
|
}
|
|
|
if (count == 0) {
|