|
@@ -8,6 +8,7 @@ import com.qmth.exam.reserve.bean.Constants;
|
|
import com.qmth.exam.reserve.bean.RichTextBean;
|
|
import com.qmth.exam.reserve.bean.RichTextBean;
|
|
import com.qmth.exam.reserve.bean.apply.*;
|
|
import com.qmth.exam.reserve.bean.apply.*;
|
|
import com.qmth.exam.reserve.bean.applytask.CurrentApplyTaskVO;
|
|
import com.qmth.exam.reserve.bean.applytask.CurrentApplyTaskVO;
|
|
|
|
+import com.qmth.exam.reserve.bean.course.CourseVO;
|
|
import com.qmth.exam.reserve.bean.examsite.ExamSiteCacheBean;
|
|
import com.qmth.exam.reserve.bean.examsite.ExamSiteCacheBean;
|
|
import com.qmth.exam.reserve.bean.login.LoginUser;
|
|
import com.qmth.exam.reserve.bean.login.LoginUser;
|
|
import com.qmth.exam.reserve.cache.CacheConstants;
|
|
import com.qmth.exam.reserve.cache.CacheConstants;
|
|
@@ -58,6 +59,9 @@ public class ExamReserveServiceImpl implements ExamReserveService {
|
|
@Autowired
|
|
@Autowired
|
|
private StudentApplyService studentApplyService;
|
|
private StudentApplyService studentApplyService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private StudentCourseService studentCourseService;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private ConcurrentService concurrentService;
|
|
private ConcurrentService concurrentService;
|
|
|
|
|
|
@@ -475,11 +479,18 @@ public class ExamReserveServiceImpl implements ExamReserveService {
|
|
if (StringUtils.isEmpty(info.getTicketNumber())) {
|
|
if (StringUtils.isEmpty(info.getTicketNumber())) {
|
|
throw new StatusException("准考证信息尚未生成");
|
|
throw new StatusException("准考证信息尚未生成");
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ List<CourseVO> courses = studentCourseService.getStudentCourses(studentId);
|
|
|
|
+ info.setCourses(courses);
|
|
return info;
|
|
return info;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public List<String> getApplyDateList(LoginUser student) {
|
|
|
|
|
|
+ public List<String> getApplyDateList(LoginUser student, Long examSiteId) {
|
|
|
|
+ if (examSiteId == null) {
|
|
|
|
+ throw new StatusException("考点ID不能为空");
|
|
|
|
+ }
|
|
|
|
+
|
|
// 日期格式:yyyyMMdd
|
|
// 日期格式:yyyyMMdd
|
|
List<String> dateList = new ArrayList<>();
|
|
List<String> dateList = new ArrayList<>();
|
|
|
|
|