|
@@ -207,6 +207,12 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void updateStudentTeacherAndSubject() {
|
|
|
+ //更新新学员状态
|
|
|
+ List<Integer> newStudentIds = studentDao.getHasVipCourseStudentIdsFromNewStudents();
|
|
|
+ if(!CollectionUtils.isEmpty(newStudentIds)){
|
|
|
+ studentDao.updateNewStudentsToOld(newStudentIds);
|
|
|
+ }
|
|
|
+
|
|
|
List<Student> noTeacherOrNoSubjectStudent = studentDao.getNoTeacherOrNoSubjectStudent();
|
|
|
if (CollectionUtils.isEmpty(noTeacherOrNoSubjectStudent)) {
|
|
|
return;
|
|
@@ -239,12 +245,6 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
if (!CollectionUtils.isEmpty(needUpdateStudents)) {
|
|
|
studentDao.batchUpdate(needUpdateStudents);
|
|
|
}
|
|
|
-
|
|
|
- //更新新学员状态
|
|
|
- List<Integer> newStudentIds = studentDao.getHasVipCourseStudentIdsFromNewStudents();
|
|
|
- if(!CollectionUtils.isEmpty(newStudentIds)){
|
|
|
- studentDao.updateNewStudentsToOld(newStudentIds);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
@Override
|