deason 8 月之前
父節點
當前提交
808f41ada7

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

@@ -237,7 +237,7 @@ public class ExamRoomServiceImpl extends ServiceImpl<ExamRoomDao, ExamRoomEntity
         //更新教学点容量
         categoryService.updateTeachingCapacity(newExamSite.getCategoryId());
 
-        //清空考点容量缓存
+        //刷新考点容量缓存
         cacheService.refreshApplyAvailableCountCache(examSiteId, oldExamSite.getCapacity(), newExamSite.getCapacity());
     }
 

+ 2 - 0
src/main/java/com/qmth/exam/reserve/service/impl/StudentApplyServiceImpl.java

@@ -200,6 +200,7 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
                 bean.setCancel(Boolean.TRUE);
                 bean.setOperateId(user.getId());
                 bean.setOperateTime(System.currentTimeMillis());
+                bean.setBizId(cacheService.increaseBizId());
 
                 // 推送至预约队列
                 boolean pushSuccess = cacheService.pushStudentApplyRecordQueue(bean);
@@ -505,6 +506,7 @@ public class StudentApplyServiceImpl extends ServiceImpl<StudentApplyDao, Studen
                     bean.setCancel(Boolean.FALSE);
                     bean.setOperateId(userId);
                     bean.setOperateTime(System.currentTimeMillis());
+                    bean.setBizId(cacheService.increaseBizId());
 
                     // 某考点某时段的“剩余可约数量”(抢占1个数量)
                     boolean takeSuccess = cacheService.decreaseApplyAvailableCount(bean.getExamSiteId(), bean.getTimePeriodId());

+ 1 - 0
src/main/java/com/qmth/exam/reserve/service/impl/StudentAutoAssignServiceImpl.java

@@ -248,6 +248,7 @@ public class StudentAutoAssignServiceImpl extends ServiceImpl<StudentApplyDao, S
                         bean.setCancel(Boolean.FALSE);
                         bean.setOperateId(operateId);
                         bean.setOperateTime(System.currentTimeMillis());
+                        bean.setBizId(cacheService.increaseBizId());
 
                         // 某考点某时段的“剩余可约数量”(抢占1个数量)
                         boolean takeSuccess = cacheService.decreaseApplyAvailableCount(bean.getExamSiteId(), bean.getTimePeriodId());