|
|
@@ -4,6 +4,7 @@ import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
|
|
|
+import com.dataeasy.server.constant.CacheNameConstant;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
@@ -58,6 +59,9 @@ public class ShuangSeQiuTask extends AbstractHzApiTask {
|
|
|
BeanUtils.copyProperties(shuangSeQiuResponse, addShuangSeQiu);
|
|
|
shuangSeQiuService.insert(addShuangSeQiu);
|
|
|
|
|
|
+ // 清除缓存,以防缓存中数据过时
|
|
|
+ cacheManager.getCache(CacheNameConstant.DATA_SHUANG_SE_QIU_LIST).evict(addShuangSeQiu.getQihao());
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|