UserDao.java 817 Bytes
Newer Older
1 2 3
package com.govmade.modules.system.dao;

import java.util.List;
Fred's avatar
Fred committed
4
import java.util.Set;
5 6

import org.apache.ibatis.annotations.Mapper;
Fred's avatar
Fred committed
7
import org.apache.ibatis.annotations.Param;
8

Fred's avatar
Fred committed
9
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
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
import com.govmade.modules.system.entity.UserEntity;

/**
 * 系统管理 - 用户设置
 * 
 * @author Fred
 * @email fangtaosh@qq.com
 * @date 2018年8月3日
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {
	
	/**
	 * 查询用户的所有权限
	 * @param userId  用户ID
	 */
	List<String> queryAllPerms(Long userId);
	
	/**
	 * 查询用户的所有菜单ID
	 */
	List<Long> queryAllMenuId(Long userId);
	
	/**
	 * 根据用户名,查询系统用户
	 */
	UserEntity queryByUserName(String username);

Fred's avatar
Fred committed
38
	void deleteBatch(@Param("ids") Set<Long> ids);
刘弈臻's avatar
刘弈臻 committed
39
	
40
}