|
@@ -1,5 +1,17 @@
|
|
|
package com.qmth.themis.business.service.impl;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
+import org.springframework.cache.annotation.CachePut;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.qmth.themis.business.cache.bean.ExamCourseCacheBean;
|
|
@@ -10,17 +22,6 @@ import com.qmth.themis.business.entity.TEExamCourse;
|
|
|
import com.qmth.themis.business.entity.TEExamPaper;
|
|
|
import com.qmth.themis.business.service.TEExamCourseService;
|
|
|
import com.qmth.themis.common.exception.BusinessException;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
-import org.springframework.cache.annotation.CacheEvict;
|
|
|
-import org.springframework.cache.annotation.CachePut;
|
|
|
-import org.springframework.cache.annotation.Cacheable;
|
|
|
-import org.springframework.scheduling.annotation.Async;
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
-
|
|
|
-import javax.annotation.Resource;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @Description: 考试科目 服务实现类
|
|
@@ -80,7 +81,6 @@ public class TEExamCourseServiceImpl extends ServiceImpl<TEExamCourseMapper, TEE
|
|
|
* @param courseCode
|
|
|
* @return
|
|
|
*/
|
|
|
- @Async
|
|
|
@Override
|
|
|
@CachePut(value = "exam_course", key = "#examId+'_'+#courseCode", condition = "#result != null")
|
|
|
public ExamCourseCacheBean updateExamCourseCacheBean(Long examId, String courseCode) {
|
|
@@ -93,7 +93,6 @@ public class TEExamCourseServiceImpl extends ServiceImpl<TEExamCourseMapper, TEE
|
|
|
* @param examId
|
|
|
* @param courseCode
|
|
|
*/
|
|
|
- @Async
|
|
|
@Override
|
|
|
@CacheEvict(value = "exam_course", key = "#examId+'_'+#courseCode")
|
|
|
public void deleteExamCourseCacheBean(Long examId, String courseCode) {
|