<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.fjhx.mapper.supplier.SupplierPriceMapper">

    <select id="getPage" resultType="java.util.LinkedHashMap">
        SELECT sp.id,
               sp.price,
               sp.material_id,
               sp.supplier_id,
               s.`name` supplierName,
               m.`name` materialName,
               m.`code` materialCode,
               m.type   materialType
        FROM supplier_price sp
                 INNER JOIN supplier s ON sp.supplier_id = s.id
                 INNER JOIN material m ON sp.material_id = m.id
            ${ew.customSqlSegment}
    </select>

</mapper>
