Просмотр исходного кода

[商户][修改][添加商户返回]

release_toaliyun_real
luozukai 7 лет назад
Родитель
Сommit
f296296c39
2 измененных файлов: 5 добавлений и 2 удалений
  1. +2
    -1
      mallinkService/src/main/resources/mapper/WxCouponMerchantMapper.xml
  2. +3
    -1
      mallinkService/src/main/resources/mapper/WxMerchantMapper.xml

+ 2
- 1
mallinkService/src/main/resources/mapper/WxCouponMerchantMapper.xml Просмотреть файл

@@ -64,7 +64,7 @@

<sql id="allMerchantVoColumns">
m.id,m.img_url,m.name,m.link_phone,m.status,m.business_id,m.sub_business_id,
cm.parameter
cm.parameter,m.link_line_phone
</sql>

<resultMap id="MerchantVoResultMap" type="com.iformall.domain.vo.WxMerchantVo">
@@ -76,6 +76,7 @@
<result column="business_id" jdbcType="INTEGER" property="businessId"/>
<result column="sub_business_id" jdbcType="INTEGER" property="subBusinessId"/>
<result column="parameter" jdbcType="VARCHAR" property="parameter"/>
<result column="link_line_phone" property="linkLinePhone"/>
<collection column="{merchantId=id}" property="shopVoList"
ofType="com.iformall.domain.vo.WxShopVo"


+ 3
- 1
mallinkService/src/main/resources/mapper/WxMerchantMapper.xml Просмотреть файл

@@ -237,12 +237,14 @@
</select>

<select id="findBusByFloorId" resultType="hashmap" parameterType="hashmap">
select count(distinct m.id) count,b.id bid,b.`title` btitle from wx_merchant m left join wx_merchant_shop ms on(m.id = ms.merchant_id)
select count(distinct m.id) count,b.id bid,b.`title` btitle from wx_merchant m
left join wx_merchant_shop ms on(m.id = ms.merchant_id)
left join wx_shop s on(ms.shop_id = s.id)
left join wx_mall_floor f on(s.floor = f.id)
left join wx_business b on(m.business_id = b.id)
where f.id = #{id}
and m.tenant_id = #{tenantId}
and s.is_del = 0
group by m.business_id
</select>


Загрузка…
Отмена
Сохранить