package org.jeecg.modules.system.mapper;
|
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Select;
|
import org.jeecg.modules.system.entity.SysDepartRole;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
/**
|
* @Description: 部门角色
|
* @Author: jeecg-boot
|
* @Date: 2020-02-12
|
* @Version: V1.0
|
*/
|
public interface SysDepartRoleMapper extends BaseMapper<SysDepartRole> {
|
/**
|
* 根据用户id,部门id查询可授权所有部门角色
|
* @param orgCode
|
* @param userId
|
* @return
|
*/
|
public List<SysDepartRole> queryDeptRoleByDeptAndUser(@Param("orgCode") String orgCode, @Param("userId") String userId);
|
|
@Select("select drole_id from sys_depart_role_user where user_id=#{userid} ")
|
List<String> listUserDepartRoleAll(String userid);
|
}
|