935090232@qq.com
2022-04-20 281dc31c4a4d4e2cf266dd65a470c7d29e4e7332
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package com.matrix.system.common.service;
 
import com.matrix.core.pojo.PaginationVO;
import com.matrix.core.web.BaseServices;
import com.matrix.system.common.bean.SysFunction;
 
import java.util.List;
 
/**
 * 系统功能service层
 *
 * @author jiangyouyao
 * @email 512061637@qq.com
 * @date 2019年2月25日
 */
public interface SysFunctionService extends BaseServices<SysFunction> {
 
    /**
     * 新增SysFunction
     */
    public int add(SysFunction sysFunction);
 
    /**
     * 批量新增SysFunction
     */
    public int batchAdd(List<SysFunction> sysFunctionList);
 
    /**
     * 根据map键值对 更新SysFunction
     */
    public int modifyByMap(SysFunction oldSysFunction, SysFunction newSysFunction);
 
    /**
     * 根据对象 更新SysFunction
     */
    public int modifyByModel(SysFunction sysFunction);
 
    /**
     * 批量删除SysFunction
     */
    public int remove(List<String> list);
 
    /**
     * 根据id删除SysFunction
     */
    public int removeById(String fnId);
 
    /**
     * 根据对象删除SysFunction
     */
    public int removeByModel(SysFunction sysFunction);
 
    /**
     * 分页查询SysFunction
     */
    public List<SysFunction> findInPage(SysFunction sysFunction, PaginationVO pageVo);
 
    /**
     * 根据对象查询SysFunction
     */
    public List<SysFunction> findByModel(SysFunction sysFunction);
 
    /**
     * 统计记录数SysFunction
     */
    public int findTotal(SysFunction sysFunction);
 
    /**
     * 根据id查询SysFunction
     */
    public SysFunction findById(String fnId);
 
    /**
     * 启用或者禁用功能
     *
     * @param fnId
     * @param status
     */
    public void setIsDisable(Long fnId, String status);
 
    /**
     * 查询公司所有的功能权限
     *
     * @param companyId
     * @return
     */
    public List<SysFunction> findCompanyFunction(Long companyId);
 
    public List<SysFunction> findFunctionByRoleIds(String roleIds);
 
    /**
     * 获取当前公司所拥有的权限树,包括按钮
     *
     * @param id
     * @return
     */
    public List<SysFunction> findRoleFuntion(String fnId);
 
}