|
@@ -119,7 +119,17 @@ public class TEExamPaperServiceImpl extends ServiceImpl<TEExamPaperMapper, TEExa
|
|
ret.setAudioPlayCount(ep.getAudioPlayCount());
|
|
ret.setAudioPlayCount(ep.getAudioPlayCount());
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
+ /**
|
|
|
|
+ * 删除客观题标答缓存
|
|
|
|
+ *
|
|
|
|
+ * @param paperId
|
|
|
|
+ */
|
|
|
|
+ @Async
|
|
|
|
+ @Override
|
|
|
|
+ @CacheEvict(value = "objective_answer", key = "#paperId")
|
|
|
|
+ public void deleteObjectiveAnswerCacheBean(Long paperId) {
|
|
|
|
|
|
|
|
+ }
|
|
@Cacheable(value = "objective_answer", key = "#paperId", unless = "#result == null")
|
|
@Cacheable(value = "objective_answer", key = "#paperId", unless = "#result == null")
|
|
@Override
|
|
@Override
|
|
public Map<String, ObjectiveAnswerCacheBean> getObjectiveAnswerCacheBean(Long paperId) {
|
|
public Map<String, ObjectiveAnswerCacheBean> getObjectiveAnswerCacheBean(Long paperId) {
|
|
@@ -233,6 +243,8 @@ public class TEExamPaperServiceImpl extends ServiceImpl<TEExamPaperMapper, TEExa
|
|
public void savePaperWeight(Map<Long, Double> map) {
|
|
public void savePaperWeight(Map<Long, Double> map) {
|
|
for (Long id : map.keySet()) {
|
|
for (Long id : map.keySet()) {
|
|
teExamPaperMapper.updateWeight(id, map.get(id));
|
|
teExamPaperMapper.updateWeight(id, map.get(id));
|
|
|
|
+ deleteExamPaperCacheBean(id);
|
|
|
|
+ deleteObjectiveAnswerCacheBean(id);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|