<?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.caimei.www.mapper.SupplierDao">
    <select id="getSupplierById" resultType="com.caimei.www.pojo.page.SupplierDetail">
        select
            s.shopID as id,
            s.userID as userId,
            s.name,
            s.sname as abbr,
            s.logo,
            s.address,
            s.businessScope,
            s.businessLicenseImage as businessLicense,
            s.taxCertificateImage as taxCertificate,
            s.authorizationCertificateImage as certificate,
            s.info,
            s.productDesc,
            s.site
        from shop s
        where shopID = #{supplierId}
    </select>

</mapper>
