|
|
|
@@ -119,9 +119,9 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<sql id="allMerchantVoColumns"> |
|
|
|
m.id, |
|
|
|
m.img_url,m.name,m.link_phone,m.status,m.business_id,m.sub_business_id, |
|
|
|
m.is_public,m.email,m.title,m.cover_picture,b.name as brand_name,b.logo as brand_img |
|
|
|
m.id,m.img_url,m.name,m.link_phone,m.status,m.business_id,m.sub_business_id, |
|
|
|
m.is_public,m.email,m.title,m.cover_picture,b.name as brand_name,b.logo as brand_img, |
|
|
|
m.shop_type,bu.title as business_name |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="getMerchantByCode" parameterType="java.util.Map" resultMap="MerchantVoResultMap"> |
|
|
|
@@ -130,6 +130,7 @@ |
|
|
|
FROM wx_merchant m |
|
|
|
left join wx_merchant_shop ms on ms.merchant_id = m.id |
|
|
|
left join wx_brand b on b.id = m.brand |
|
|
|
left join wx_business bu on b.id = m.business_id |
|
|
|
where ms.is_del = 0 |
|
|
|
<where> |
|
|
|
<if test=" null != tenantId "> |
|
|
|
@@ -156,10 +157,13 @@ |
|
|
|
<result column="email" jdbcType="VARCHAR" property="email"/> |
|
|
|
<result column="title" jdbcType="VARCHAR" property="title"/> |
|
|
|
<result column="cover_picture" jdbcType="VARCHAR" property="coverPicture"/> |
|
|
|
<result column="shop_type" jdbcType="VARCHAR" property="shopType"/> |
|
|
|
|
|
|
|
<result column="brand_name" jdbcType="VARCHAR" property="brandName"/> |
|
|
|
<result column="brand_img" jdbcType="VARCHAR" property="brandImg"/> |
|
|
|
|
|
|
|
<result column="business_name" jdbcType="VARCHAR" property="businessName"/> |
|
|
|
|
|
|
|
<collection column="{merchantId=id}" property="shopVoList" |
|
|
|
ofType="com.iformall.domain.vo.WxShopVo" |
|
|
|
javaType="java.util.List" |
|
|
|
@@ -174,6 +178,7 @@ |
|
|
|
FROM wx_merchant m |
|
|
|
left join wx_merchant_shop ms on ms.merchant_id = m.id |
|
|
|
left join wx_brand b on b.id = m.brand |
|
|
|
left join wx_business bu on b.id = m.business_id |
|
|
|
where ms.is_del = 0 |
|
|
|
<if test=" null != merchantName and ''!=merchantName "> |
|
|
|
and m.`name` like concat('%', #{merchantName},'%') |
|
|
|
@@ -198,7 +203,10 @@ |
|
|
|
<if test=" null != isPublic"> |
|
|
|
and m.`is_public` = #{isPublic} |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != id"> |
|
|
|
and m.`id` = #{id} |
|
|
|
</if> |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|