소스 검색

正品联盟优化

Aslee 4 년 전
부모
커밋
30deda26ce

+ 4 - 0
base-module/src/main/java/com/caimei/module/base/entity/vo/AuthProductVo.java

@@ -34,6 +34,10 @@ public class AuthProductVo {
      * 品牌授权logo
      */
     private String authLogo;
+    /**
+     * 品牌Id
+     */
+    private Integer brandId;
     /**
      * 品牌名称
      */

+ 1 - 1
product/src/main/java/com/caimei/module/product/dao/ProductModuleDao.java

@@ -106,5 +106,5 @@ public interface ProductModuleDao {
 
     List<CmBrandProductParamPo> getParamsByProductId(Integer productId);
 
-    StatementFileVo findStatementFileByAuthUserId(Integer authUserId);
+    StatementFileVo findStatementFile(@Param("authUserId") Integer authUserId, @Param("brandId") Integer brandId);
 }

+ 7 - 1
product/src/main/resources/com-caimei-module-product/ProductModuleMapper.xml

@@ -597,7 +597,12 @@
         select p.name  as productName,
                p.snCode,
                p.image as productImage,
+               p.pcImage,
+               p.appletsImage,
                p.certificateImage,
+               p.pcCertificateImage,
+               p.appletsCertificateImage,
+               p.brandId,
                b.authLogo,
                b.name  as brandName,
                c.name  as productionPlace,
@@ -622,10 +627,11 @@
     <select id="getParamsByProductId" resultType="com.caimei.module.base.entity.po.CmBrandProductParamPo">
         select name,content from cm_brand_product_param where productId = #{productId}
     </select>
-    <select id="findStatementFileByAuthUserId" resultType="com.caimei.module.base.entity.vo.StatementFileVo">
+    <select id="findStatementFile" resultType="com.caimei.module.base.entity.vo.StatementFileVo">
         select name,ossName,md5Hex,uploadTime
         from cm_brand_auth_file
         where authUserId = #{authUserId}
+        and brandId = #{brandId}
         limit 1
     </select>
 </mapper>