haogh 1 년 전
부모
커밋
1ded083587
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/main/java/com/qmth/exam/reserve/service/impl/StudentApplyServiceImpl.java

+ 1 - 3
src/main/java/com/qmth/exam/reserve/service/impl/StudentApplyServiceImpl.java

@@ -521,9 +521,7 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
 
                 for (AgentAndTimeVO agentTime : agentTimeList) {
                     // 已经预约的容量和考点的容量从redis中获取
-//                    int haveApplyCount = cacheService.getApplyFinishCount(agentTime.getAgentId(),
-//                            agentTime.getTimePeriodId());
-                    int haveApplyCount = countApplyFinishForExamSiteAndTimePeriod(agentTime.getAgentId(),
+                    int haveApplyCount = cacheService.getApplyFinishCount(agentTime.getAgentId(),
                             agentTime.getTimePeriodId());
                     int examSiteCount = cacheService.getApplyTotalCount(agentTime.getAgentId());
                     if (haveApplyCount >= examSiteCount) {