|
@@ -642,5 +642,47 @@
|
|
<select id="getLiveAdvertisingImage" resultType="java.lang.String">
|
|
<select id="getLiveAdvertisingImage" resultType="java.lang.String">
|
|
SELECT advertisingImage FROM new_page_live_advertising_image LIMIT 1;
|
|
SELECT advertisingImage FROM new_page_live_advertising_image LIMIT 1;
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="getAuthProductByProductId" resultType="com.caimei365.commodity.model.vo.AuthProductVo">
|
|
|
|
+ select p.name as productName,
|
|
|
|
+ p.snCode,
|
|
|
|
+ p.pcImage,
|
|
|
|
+ p.appletsImage,
|
|
|
|
+ p.pcCertificateImage,
|
|
|
|
+ p.appletsCertificateImage,
|
|
|
|
+ p.brandId,
|
|
|
|
+ b.authLogo,
|
|
|
|
+ b.name as brandName,
|
|
|
|
+ c.name as productionPlace,
|
|
|
|
+ a.id as authId,
|
|
|
|
+ a.authParty,
|
|
|
|
+ u.authUserId as authUserId,
|
|
|
|
+ u.name as shopName,
|
|
|
|
+ u.shopType,
|
|
|
|
+ u.qrCodeImage,
|
|
|
|
+ i.securityLink,
|
|
|
|
+ i.statementType,
|
|
|
|
+ i.statementContent,
|
|
|
|
+ i.statementLink,
|
|
|
|
+ i.statementImage
|
|
|
|
+ from cm_brand_auth_product p
|
|
|
|
+ left join cm_brand_auth a on p.authId = a.id
|
|
|
|
+ left join cm_brand_auth_user u on a.authUserId = u.authUserId
|
|
|
|
+ left join cm_brand_auth_shop_info i on u.authUserId = i.authUserId and p.brandId = i.brandId
|
|
|
|
+ left join cm_brand b on i.brandId = b.id
|
|
|
|
+ left join country c on i.countryId = c.countryId
|
|
|
|
+ where p.id = #{productId} and u.status = 1 and a.status = 1 and p.status = 1 and a.auditStatus = 1 and p.auditStatus = 1
|
|
|
|
+ </select>
|
|
|
|
+ <select id="getStatementFile" resultType="com.caimei365.commodity.model.vo.StatementFileVo">
|
|
|
|
+ select name,ossName,md5Hex,uploadTime
|
|
|
|
+ from cm_brand_auth_file
|
|
|
|
+ where authUserId = #{authUserId}
|
|
|
|
+ and brandId = #{brandId}
|
|
|
|
+ limit 1
|
|
|
|
+ </select>
|
|
|
|
+ <select id="getAuthProductParams" resultType="com.caimei365.commodity.model.po.BrandProductParamPo">
|
|
|
|
+ select name, content
|
|
|
|
+ from cm_brand_product_param
|
|
|
|
+ where productId = #{productId}
|
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|