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