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

[A端][修复]:查询商户列表时加上合适的条件

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

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

@@ -95,7 +95,8 @@
left join wx_shop s on ms.shop_id = s.id left join wx_shop s on ms.shop_id = s.id
left join wx_mall_building mb on s.building = mb.id left join wx_mall_building mb on s.building = mb.id
left join wx_mall_floor mf on s.floor = mf.id left join wx_mall_floor mf on s.floor = mf.id
where cm.product_id = #{productId}
where cm.status = 0
and cm.product_id = #{productId}
</select> </select>


<sql id="allMerchantNameColumns"> <sql id="allMerchantNameColumns">
@@ -113,7 +114,8 @@
<include refid="allMerchantNameColumns"/> <include refid="allMerchantNameColumns"/>
from wx_coupon_merchant cm from wx_coupon_merchant cm
left join wx_merchant m on m.id = cm.merchant_id left join wx_merchant m on m.id = cm.merchant_id
where cm.product_id = #{productId}
where cm.status = 0
and cm.product_id = #{productId}
</select> </select>


<select id="findMerchantBaseList" parameterType="java.util.Map" resultMap="MerchantVoResultMap"> <select id="findMerchantBaseList" parameterType="java.util.Map" resultMap="MerchantVoResultMap">
@@ -121,7 +123,8 @@
<include refid="allMerchantBaseColumns"/> <include refid="allMerchantBaseColumns"/>
from wx_coupon_merchant cm from wx_coupon_merchant cm
left join wx_merchant m on m.id = cm.merchant_id left join wx_merchant m on m.id = cm.merchant_id
where cm.product_id = #{productId}
where cm.status = 0
and cm.product_id = #{productId}
</select> </select>






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