Преглед изворни кода

[卡券][修复]:多商户通用券商户全部禁用后作废

release_toaliyun_real
hupeng пре 7 година
родитељ
комит
b831382b71
1 измењених фајлова са 8 додато и 2 уклоњено
  1. +8
    -2
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 8
- 2
mallinkService/src/main/resources/mapper/WxCouponMapper.xml Прегледај датотеку

@@ -204,8 +204,14 @@
</update>

<update id="offExpiriedCouponByMerchantStatus">
update wx_coupon c, wx_merchant m SET c.status = 1, c.update_date = now()
where c.status = 0 and m.status = 0 and m.id = c.merchant_id
update wx_coupon c
SET c.status = 1, c.update_date = now()
where c.status = 0 and
(select count(*) from wx_coupon_merchant cm, wx_merchant m
where m.id = cm.merchant_id
and c.id = cm.product_id
and cm.status = 0
and m.status = 1) = 0
</update>

</mapper>

Loading…
Откажи
Сачувај