2021-05-30 02:24:10 +08:00
|
|
|
package com.ruoyi.demo.mapper;
|
|
|
|
|
2021-06-18 15:32:23 +08:00
|
|
|
import com.ruoyi.common.core.mybatisplus.cache.MybatisPlusRedisCache;
|
|
|
|
import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
|
2021-06-10 21:18:58 +08:00
|
|
|
import com.ruoyi.demo.domain.TestDemo;
|
|
|
|
import org.apache.ibatis.annotations.CacheNamespace;
|
2021-05-30 02:24:10 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 测试单表Mapper接口
|
|
|
|
*
|
|
|
|
* @author Lion Li
|
|
|
|
* @date 2021-05-30
|
|
|
|
*/
|
2021-06-22 13:57:36 +08:00
|
|
|
// 如使需切换数据源 请勿使用缓存 会造成数据不一致现象
|
2021-06-10 21:18:58 +08:00
|
|
|
@CacheNamespace(implementation = MybatisPlusRedisCache.class, eviction = MybatisPlusRedisCache.class)
|
2021-05-30 02:24:10 +08:00
|
|
|
public interface TestDemoMapper extends BaseMapperPlus<TestDemo> {
|
|
|
|
|
|
|
|
}
|