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

[统计][添加][增加导出待缴商户]

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

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

@@ -803,7 +803,9 @@
</select>

<select id="findByMerchant" parameterType="com.iformall.domain.po.WxCoupon" resultType="com.iformall.domain.po.WxCoupon">
select c.* from wx_coupon c left join wx_coupon_merchant wc on wc.product_id = c.id where 1=1
select c.*,wcc.target_ad targetAd from wx_coupon c inner join wx_coupon_channel wcc
on wcc.coupon_id = c.id
left join wx_coupon_merchant wc on wc.product_id = c.id where 1=1
<if test="merchantId != null">
and wc.merchant_id=#{merchantId}
</if>


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