<?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.order.OrderDetailsMapper">

    <select id="listByOrderSalesId" resultType="com.fjhx.params.order.OrderDetailsEx">
        select od.id,
               od.order_id,
               od.product_id,
               od.quantity,
               od.not_issued_quantity,
               od.price,
               od.remark,
               pi.name  productName,
               pi.code  productCode,
               pi.specs productSpecs,
               pi.unit  productUnit
        from order_details od
                 left join product_info pi on od.product_id = pi.id
            ${ew.customSqlSegment}
    </select>

</mapper>
