|
@@ -229,11 +229,14 @@ public class ExamRoomServiceImpl extends ServiceImpl<ExamRoomDao, ExamRoomEntity
|
|
}
|
|
}
|
|
|
|
|
|
private void updateExamSiteAndTeachingCapacity(Long examSiteId) {
|
|
private void updateExamSiteAndTeachingCapacity(Long examSiteId) {
|
|
|
|
+ ExamSiteEntity oldExamSite = examSiteService.getById(examSiteId);
|
|
examSiteService.updateExamSiteCapacity(examSiteId);
|
|
examSiteService.updateExamSiteCapacity(examSiteId);
|
|
- ExamSiteEntity examSite = examSiteService.getById(examSiteId);
|
|
|
|
- categoryService.updateTeachingCapacity(examSite.getCategoryId());
|
|
|
|
|
|
+ ExamSiteEntity newExamSite = examSiteService.getById(examSiteId);
|
|
|
|
+ categoryService.updateTeachingCapacity(newExamSite.getCategoryId());
|
|
|
|
+ /*//清空考点容量缓存
|
|
|
|
+ cacheService.clearApplyTotalCountCache(examSiteId);*/
|
|
//清空考点容量缓存
|
|
//清空考点容量缓存
|
|
- cacheService.clearApplyTotalCountCache(examSiteId);
|
|
|
|
|
|
+ cacheService.initApplyAvailableCountCache(examSiteId, oldExamSite.getCapacity(), newExamSite.getCapacity());
|
|
}
|
|
}
|
|
|
|
|
|
private void checkExamRoom(ExamRoomSaveReq req) {
|
|
private void checkExamRoom(ExamRoomSaveReq req) {
|