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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.jxiop.biz.entity.PrivilegeCompany;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

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

public interface PrivilegeCompanyMapper extends BaseMapper<PrivilegeCompany> {

    @Select("select SEQUENCE_NBR as sequenceNbr,ORG_CODE as orgCode,COMPANY_NAME as companyName ,`LEVEL` ,CONCAT_WS('_',COMPANY_NAME,SEQUENCE_NBR) as text from privilege_company where COMPANY_TYPE = 'region' and IS_DELETED = 0  ")
   public List<PrivilegeCompany> getAreaCompany();


    @Select(" select LOGIN_ID from auth_login_info  where    LOGIN_ID = #{jobNum}")
    List<Map<String, Object>> selectJobNumIsExist(@Param("jobNum")String jobNum);
}
