|
|
|
@ -9,7 +9,9 @@ import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
|
import com.ibeetl.admin.core.file.FileService;
|
|
|
|
|
import com.ibeetl.admin.core.util.TimeTool;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
|
import com.ibeetl.jlw.dao.StudentDao;
|
|
|
|
|
import com.ibeetl.jlw.entity.FileEntity;
|
|
|
|
|
import com.ibeetl.jlw.entity.Student;
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScoreDashboard;
|
|
|
|
|
import com.ibeetl.jlw.service.TeacherOpenCourseScoreDashboardService;
|
|
|
|
|
import com.ibeetl.jlw.web.query.TeacherOpenCourseScoreDashboardQuery;
|
|
|
|
@ -53,6 +55,8 @@ public class TeacherOpenCourseScoreDashboardController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private TeacherOpenCourseScoreDashboardService teacherOpenCourseScoreDashboardService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private StudentDao studentDao;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
FileService fileService;
|
|
|
|
@ -64,6 +68,12 @@ public class TeacherOpenCourseScoreDashboardController {
|
|
|
|
|
if (null == coreUser) {
|
|
|
|
|
return JsonResult.failMessage("请登录后再操作");
|
|
|
|
|
} else {
|
|
|
|
|
if (coreUser.isStudent()) {
|
|
|
|
|
Student student = studentDao.getByUserId(coreUser.getId());
|
|
|
|
|
if (student != null) {
|
|
|
|
|
condition.setStudentId(student.getStudentId());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
PageQuery page = condition.getPageQuery();
|
|
|
|
|
teacherOpenCourseScoreDashboardService.queryByConditionQuery(page);
|
|
|
|
|
return JsonResult.success(page);
|
|
|
|
|