package cn.pluss.platform.mapper;

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

/**
 * <p>
 * 邮费信息配置表 Mapper 接口
 * </p>
 *
 * @author crystal
 * @since 2022-03-29
 */
public interface PostageConfigMapper extends BaseMapper<PostageConfig> {

    @Select("SELECT * FROM tb_pluss_postage_config WHERE areaCode like CONCAT('%',#{areaCode},'%') and `status` = #{status}  limit 1 ")
    PostageConfig getPostageByArea(@Param("areaCode") String areaCode, @Param("status")String status);
}
