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

import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.jxiop.api.entity.StdUserEmpower;
import com.yeejoin.amos.feign.privilege.model.CompanyModel;

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

}
