package com.sckw.system.repository;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sckw.core.model.base.BaseModel;
import com.sckw.system.dao.KwsUserRoleDao;
import com.sckw.system.model.KwsUserRole;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * @author :chenXiaoFei
 * @version :1.0
 * @description : 角色员工关接口
 * @create :2025-11-04 18:31:00
 */

@Repository
public class KwsUserRoleRepository extends ServiceImpl<KwsUserRoleDao, KwsUserRole> {
    public List<KwsUserRole> queryByRoleIds(Set<Long> roleIds) {

        return list(Wrappers.<KwsUserRole>lambdaQuery()
                .eq(BaseModel::getDelFlag,0)
                .in(KwsUserRole::getRoleId,roleIds));
    }
}
