| | |
| | | package com.ruoyi.demo.mapper; |
| | | |
| | | import com.ruoyi.common.core.mybatisplus.MybatisPlusRedisCache; |
| | | import com.ruoyi.common.core.page.BaseMapperPlus; |
| | | import com.ruoyi.common.mybatis.annotation.DataColumn; |
| | | import com.ruoyi.common.mybatis.annotation.DataPermission; |
| | | import com.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; |
| | | import com.ruoyi.demo.domain.TestTree; |
| | | import org.apache.ibatis.annotations.CacheNamespace; |
| | | import com.ruoyi.demo.domain.vo.TestTreeVo; |
| | | |
| | | /** |
| | | * 测试树表Mapper接口 |
| | | * |
| | | * @author Lion Li |
| | | * @date 2021-05-30 |
| | | * @date 2021-07-26 |
| | | */ |
| | | @CacheNamespace(implementation = MybatisPlusRedisCache.class, eviction = MybatisPlusRedisCache.class) |
| | | public interface TestTreeMapper extends BaseMapperPlus<TestTree> { |
| | | @DataPermission({ |
| | | @DataColumn(key = "deptName", value = "dept_id"), |
| | | @DataColumn(key = "userName", value = "user_id") |
| | | }) |
| | | public interface TestTreeMapper extends BaseMapperPlus<TestTreeMapper, TestTree, TestTreeVo> { |
| | | |
| | | } |