|
@@ -9,6 +9,7 @@ import java.util.Map;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import com.ym.mec.biz.dal.dao.CourseScheduleDao;
|
|
|
+import com.ym.mec.common.page.QueryInfo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -35,7 +36,7 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
private StudentDao studentDao;
|
|
|
@Autowired
|
|
|
private CourseScheduleDao courseScheduleDao;
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
private CourseScheduleStudentPaymentDao courseScheduleStudentPaymentDao;
|
|
|
|
|
@@ -82,7 +83,7 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
Map<Integer,StudentCourseTimesDto> map = studentCourseTimesDtoList.stream().collect(Collectors.toMap(StudentCourseTimesDto::getUserId, s -> s));
|
|
|
//查询服务指标为0的用户
|
|
|
List<Student> unlabeledStudentList = studentDao.queryByOperatingTempTag(0);
|
|
|
-
|
|
|
+
|
|
|
List<Student> updateStudentList = new ArrayList<Student>();
|
|
|
StudentCourseTimesDto dto = null;
|
|
|
for(Student s : unlabeledStudentList){
|
|
@@ -108,11 +109,11 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
updateStudentList.add(s);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if(updateStudentList.size() > 0){
|
|
|
studentDao.batchUpdate(updateStudentList);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -172,4 +173,9 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
studentDao.batchUpdateAdviser(teacherId,studentIds);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Integer updateGrade() {
|
|
|
+ return studentDao.updateGrade();
|
|
|
+ }
|
|
|
+
|
|
|
}
|