package com.bonus.material.basic.mapper;

import com.bonus.common.biz.domain.lease.WorkPeopleInfo;
import com.bonus.material.basic.domain.dto.SysUserRoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : 阮世耀
 * @version : 1.0
 * @PackagePath: com.bonus.material.basic.mapper
 * @CreateTime: 2025-06-18  15:57
 * @Description: 用户角色mapper
 */
@Mapper
public interface BmUserRoleMapper {

    /**
     * 查询分公司内的某个角色的所有用户
     * @param deptId 分公司id
     * @param roleId 角色id
     * @return List<SysUserRoleVo>
     */
    List<SysUserRoleVo> getUserRoleListByDeptId(@Param("deptId") Long deptId, @Param("roleId") Long roleId);

    List<WorkPeopleInfo> getUserListByDeptId(@Param("deptId") Long deptId, @Param("roleId") Long roleId);
}
