lius
2023-06-08 534aec7a687ceca8120ba798ad20d80d7058ffe6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package org.jeecg.modules.demo.test.mapper;
 
import java.util.List;
import java.util.Map;
 
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.test.entity.JeecgDemo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 
/**
 * @Description: jeecg 测试demo
 * @Author: jeecg-boot
 * @Date:  2018-12-29
 * @Version: V1.0
 */
public interface JeecgDemoMapper extends BaseMapper<JeecgDemo> {
 
    /**
     * 根据姓名查询demo列表数据
     * @param name 姓名
     * @return demo集合
     */
    public List<JeecgDemo> getDemoByName(@Param("name") String name);
    
    /**
     * 查询列表数据 直接传数据权限的sql进行数据过滤
     * @param page
     * @param permissionSql
     * @return
     */
    public IPage<JeecgDemo> queryListWithPermission(Page<JeecgDemo> page,@Param("permissionSql")String permissionSql);
 
    /**
     * 根据前缀获取所有有效权限
     * @param permsPrefix
     * @return
     */
    public List<String> queryAllAuth(@Param("permsPrefix")String permsPrefix);
 
    /**
     * 查询用户已授权字段
     * @param userId
     * @param permsPrefix
     * @return
     */
    public List<String> queryUserAuth(@Param("userId")String userId,@Param("permsPrefix")String permsPrefix);
 
 
    /**
     * 获取创建人
     * @return
     */
    List<String> getCreateByList();
 
}