package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeequan.jeepay.db.entity.RegionCodePayRyx;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2024-03-06
 */
public interface RegionCodePayRyxMapper extends BaseMapper<RegionCodePayRyx> {

    /**
     * 根据名字获取区域信息
     * @param provinceName
     * @param cityName
     * @param areaName
     * @return
     */
    @Select("SELECT * FROM t_region_code_pay_ryx WHERE province_name = #{provinceName} and city_name = #{cityName} and area_name = #{areaName}")
    RegionCodePayRyx getByAreaName(@Param("provinceName") String provinceName, @Param("cityName")String cityName, @Param("areaName")String areaName);
}
