|
@@ -593,4 +593,17 @@
|
|
|
from bigtype
|
|
|
where bigTypeID = #{bigTypeID}
|
|
|
</select>
|
|
|
+ <select id="findAuthProductDetailsByProductId" resultType="com.caimei.module.base.entity.vo.AuthProductVo">
|
|
|
+ select bap.name,bap.snCode,bap.image,cb.authLogo,cb.name as brandName,c.name as productionPlace,
|
|
|
+ ba.securityLink,ba.agentFlag,ba.agentName,ba.statementType,ba.statementContent,
|
|
|
+ ba.statementLink,ba.authParty
|
|
|
+ from cm_brand_auth_product bap
|
|
|
+ left join cm_brand_auth ba on bap.authId = ba.id
|
|
|
+ left join cm_brand cb on ba.brandId = cb.id
|
|
|
+ left join country c on ba.countryId = c.countryId
|
|
|
+ where bap.id = #{productId}
|
|
|
+ </select>
|
|
|
+ <select id="getParamsByProductId" resultType="com.caimei.module.base.entity.po.CmBrandProductParamPo">
|
|
|
+ select name,content from cm_brand_product_param where productId = #{productId}
|
|
|
+ </select>
|
|
|
</mapper>
|