|
|
|
@@ -245,7 +245,7 @@ |
|
|
|
select <include refid="allCUserColumns" /> |
|
|
|
from wx_coupon_channel cc, |
|
|
|
wx_coupon c,wx_merchant m |
|
|
|
left join wx_merchant_shop ms on ms.merchant_id = m.id |
|
|
|
left join wx_merchant_shop ms on ms.merchant_id = m.id and ms.is_del = 0 |
|
|
|
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_floor mf on s.floor = mf.id |
|
|
|
@@ -277,7 +277,7 @@ |
|
|
|
select <include refid="allCUserColumns2" /> |
|
|
|
from |
|
|
|
wx_coupon c,wx_merchant m |
|
|
|
left join wx_merchant_shop ms on ms.merchant_id = m.id |
|
|
|
left join wx_merchant_shop ms on ms.merchant_id = m.id and ms.is_del = 0 |
|
|
|
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_floor mf on s.floor = mf.id |
|
|
|
|