[测评系统]--测评系统核心代码库
林致杰
2023-10-26 765d9a3de208ba1ea9a10f9b1bd6fba08afd2079
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
package com.ots.project.system.menu.mapper;
import com.ots.project.system.menu.domain.Menu;
import org.apache.ibatis.annotations.Param;
import java.util.List;
 
public interface MenuMapper {
    
    List<Menu> selectMenuAll();
    
    List<Menu> selectMenuAllByUserId(Long userId);
    
    List<Menu> selectMenuNormalAll();
    
    List<Menu> selectMenusByUserId(Long userId);
    
    List<String> selectPermsByUserId(Long userId);
    
    List<String> selectMenuTree(Long roleId);
    
    List<Menu> selectMenuList(Menu menu);
    
    List<Menu> selectMenuListByUserId(Menu menu);
    
    int deleteMenuById(Long menuId);
    
    Menu selectMenuById(Long menuId);
    
    int selectCountMenuByParentId(Long parentId);
    
    int insertMenu(Menu menu);
    
    int updateMenu(Menu menu);
    
    Menu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
}