Ver Fonte

详情添加店铺logo

hxl13994548489 há 6 meses atrás
pai
commit
5f6fc7bded

+ 3 - 0
linkwe-service/src/main/java/com/linkwechat/domain/weGroupFission/dto/WeGroupFissionDetailDto.java

@@ -52,6 +52,9 @@ public class WeGroupFissionDetailDto {
 	@ApiModelProperty(value = "商户名称")
 	private String merchantName;
 
+	@ApiModelProperty(value = "商户logo")
+	private String merchantLogo;
+
 
 	@ApiModelProperty(value = "活动负责人")
 	private String leaderUserId;

+ 7 - 1
linkwe-service/src/main/java/com/linkwechat/mapper/FissionMerchantInfoMapper.java

@@ -20,5 +20,11 @@ import java.util.List;
 @DS("master")
 @Mapper
 public interface FissionMerchantInfoMapper extends BaseMapper<LocalMerchantInfo> {
-
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2026/2/26 16:41
+     *  @Description: 查询商户的品牌logo
+     */
+    String getMerchantLogoById(@Param("merchantId") String merchantId);
 }

+ 7 - 0
linkwe-service/src/main/java/com/linkwechat/service/LocalMerchantInfoService.java

@@ -24,4 +24,11 @@ public interface LocalMerchantInfoService extends IService<LocalMerchantInfo> {
      *  @Description: 查询营业的商户数据
      */
     List<LocalMerchantInfo>  getMerchantInfoList();
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2026/2/26 17:03
+     *  @Description: 通过商户id查询商户logo
+     */
+    String  getMerchantLogoById(String merchantId);
 }

+ 10 - 0
linkwe-service/src/main/java/com/linkwechat/service/impl/LocalMerchantInfoServiceImpl.java

@@ -43,4 +43,14 @@ public class LocalMerchantInfoServiceImpl extends ServiceImpl<FissionMerchantInf
         return this.list(new QueryWrapper<LocalMerchantInfo>().eq("merchant_status", 1));
     }
 
+
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2026/2/26 16:41
+     *  @Description: 查询商户的品牌logo
+     */
+    public String  getMerchantLogoById(String merchantId){
+        return this.getBaseMapper().getMerchantLogoById(merchantId);
+    }
 }

+ 3 - 0
linkwe-service/src/main/java/com/linkwechat/service/impl/WeGroupFissionServiceImpl.java

@@ -391,6 +391,9 @@ public class WeGroupFissionServiceImpl extends ServiceImpl<WeGroupFissionMapper,
         //4.查询商户名称
         LocalMerchantInfo merchantInfo = localMerchantInfoService.getById(weGroupFission.getMerchantId());
         dto.setMerchantName(merchantInfo!=null?merchantInfo.getStoreName():null);
+        // add by hxl   添加商户logo
+        String merchantLogo = localMerchantInfoService.getMerchantLogoById(weGroupFission.getMerchantId());
+        dto.setMerchantLogo(merchantLogo);
         return dto;
     }
     /**

+ 8 - 2
linkwe-service/src/main/resources/mapper/wecom/FissionMerchantInfoMapper.xml

@@ -2,6 +2,12 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.linkwechat.mapper.FissionMerchantInfoMapper">
 
-
-
+    <select id="getMerchantLogoById" resultType="java.lang.String">
+        select
+            logo
+        from
+           local_merchant_brand
+        where
+           merchant_id =#{merchantId}
+    </select>
 </mapper>