|
@@ -41,22 +41,19 @@ public class ExamReserveServiceImpl implements ExamReserveService {
|
|
|
private static final Logger log = LoggerFactory.getLogger(ExamReserveServiceImpl.class);
|
|
|
|
|
|
@Autowired
|
|
|
- private StudentService studentService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private StudentApplyService studentApplyService;
|
|
|
+ private ApplyTaskCacheService applyTaskCacheService;
|
|
|
|
|
|
@Autowired
|
|
|
private ApplyTaskService applyTaskService;
|
|
|
|
|
|
@Autowired
|
|
|
- private TimePeriodService timePeriodService;
|
|
|
+ private ExamSiteService examSiteService;
|
|
|
|
|
|
@Autowired
|
|
|
- private ExamSiteService examSiteService;
|
|
|
+ private TimePeriodService timePeriodService;
|
|
|
|
|
|
@Autowired
|
|
|
- private ApplyTaskCacheService applyTaskCacheService;
|
|
|
+ private StudentApplyService studentApplyService;
|
|
|
|
|
|
@Autowired
|
|
|
private ConcurrentService concurrentService;
|
|
@@ -71,7 +68,7 @@ public class ExamReserveServiceImpl implements ExamReserveService {
|
|
|
throw new StatusException("预约时段ID不能为空");
|
|
|
}
|
|
|
|
|
|
- CurrentApplyTaskVO curApplyTask = applyTaskService.currentApplyTask(student.getOrgId());
|
|
|
+ CurrentApplyTaskVO curApplyTask = applyTaskCacheService.currentApplyTask(student.getOrgId());
|
|
|
if (curApplyTask == null) {
|
|
|
log.warn("预约失败,尚未开启预约任务!stuApplyTaskId:{}", student.getApplyTaskId());
|
|
|
throw new StatusException("尚未开启预约任务");
|
|
@@ -172,7 +169,7 @@ public class ExamReserveServiceImpl implements ExamReserveService {
|
|
|
throw new StatusException("预约记录ID不能为空");
|
|
|
}
|
|
|
|
|
|
- CurrentApplyTaskVO curApplyTask = applyTaskService.currentApplyTask(student.getOrgId());
|
|
|
+ CurrentApplyTaskVO curApplyTask = applyTaskCacheService.currentApplyTask(student.getOrgId());
|
|
|
if (curApplyTask == null) {
|
|
|
log.warn("取消预约失败,尚未开启预约任务!stuApplyTaskId:{} applyId:{}", student.getApplyTaskId(), applyId);
|
|
|
return;
|
|
@@ -266,7 +263,7 @@ public class ExamReserveServiceImpl implements ExamReserveService {
|
|
|
|
|
|
@Override
|
|
|
public List<ApplyVO> getStudentApplyList(LoginUser student, Boolean cancel) {
|
|
|
- CurrentApplyTaskVO curApplyTask = applyTaskService.currentApplyTask(student.getOrgId());
|
|
|
+ CurrentApplyTaskVO curApplyTask = applyTaskCacheService.currentApplyTask(student.getOrgId());
|
|
|
if (curApplyTask == null) {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
@@ -339,7 +336,7 @@ public class ExamReserveServiceImpl implements ExamReserveService {
|
|
|
// 日期格式:yyyyMMdd
|
|
|
List<String> dateList = new ArrayList<>();
|
|
|
|
|
|
- CurrentApplyTaskVO curApplyTask = applyTaskService.currentApplyTask(student.getOrgId());
|
|
|
+ CurrentApplyTaskVO curApplyTask = applyTaskCacheService.currentApplyTask(student.getOrgId());
|
|
|
if (curApplyTask == null) {
|
|
|
return dateList;
|
|
|
}
|
|
@@ -390,7 +387,7 @@ public class ExamReserveServiceImpl implements ExamReserveService {
|
|
|
throw new StatusException("预约日期值的格式不正确");
|
|
|
}
|
|
|
|
|
|
- CurrentApplyTaskVO curApplyTask = applyTaskService.currentApplyTask(student.getOrgId());
|
|
|
+ CurrentApplyTaskVO curApplyTask = applyTaskCacheService.currentApplyTask(student.getOrgId());
|
|
|
if (curApplyTask == null) {
|
|
|
throw new StatusException("尚未开启预约任务");
|
|
|
}
|