package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.SubMercCodeYs;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 银盛二级商户省市区code Mapper 接口
 * </p>
 *
 * @author crystal
 * @since 2022-06-15
 */
public interface SubMercCodeYsMapper extends BaseMapper<SubMercCodeYs> {

    @Select("SELECT * FROM tb_pluss_sub_merc_code_ys WHERE `name` like CONCAT(#{city},'%') limit 1")
    SubMercCodeYs getSubMercCodeYsByCity(String city);
}
