package com.crm.manager.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface AccountInfoMapper {

    @Select("select 1 from account_view_${platform} where login=#{login} limit 1")
    Integer existsByLoginAndPlatform(@Param("login") Long login, @Param("platform") String platform);

}
