package com.yeejoin.amos.boot.module.jxiop.biz.amosprojectmapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.yeejoin.amos.boot.biz.common.bo.CompanyBo;
import com.yeejoin.amos.boot.module.jxiop.biz.entity.StdUserEmpower;
import com.yeejoin.amos.feign.privilege.model.CompanyModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: tw
 * @createDate: 2023/11/9
 */
public interface UserEmpowerMapper extends BaseMapper<StdUserEmpower> {
    @Select("select company_name as companyName , level from privilege_company where org_code = #{orgCode}")
    CompanyModel getCompanyInfoByOrgCode(String orgCode);

    List<CompanyModel> getCompanyBoList(@Param("companyType") String companyType,
                                        @Param("level") String level,
                                        @Param("companyOrgCode") List<String> companyOrgCode
                                        );
}
