package com.cyksj.mapper.corp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyksj.model.entity.CorpUserAuth;
import org.apache.ibatis.annotations.Select;

/**
 * @author chan
 * @date 2022/4/8 上午11:06
 */
public interface CorpUserAuthMapper extends BaseMapper<CorpUserAuth> {
	@Select("select unionid from corp_user where id = (select corp_user_id from corp_user_auth where external_userid = #{externalUserId} limit 1) limit 1")
	String getUnionIdByExternalUserId(String externalUserId);
}
