|
|
|
@@ -33,13 +33,6 @@ |
|
|
|
cs.conditions -> '$.merchantSend' as merchantSend, |
|
|
|
cs.conditions -> '$.merchantLnventory' as merchantLnventory, |
|
|
|
cs.conditions -> '$.merchantRemain' as merchantRemain, |
|
|
|
(case when |
|
|
|
(select count(*) from wx_coupon_merchant xcm where xcm.product_id = cs.coupon_id and xcm.status = 0)=1 |
|
|
|
then |
|
|
|
(select m.name from wx_merchant m, wx_coupon_merchant cm where m.id = cm.merchant_id and cm.product_id=cs.coupon_id and cm.status = 0) |
|
|
|
else |
|
|
|
'[多商户通用]' |
|
|
|
end) as merchant_name, |
|
|
|
c.remain_inventory, c.use_limit_rule,c.use_limit_quantity, c.inventory, c.valid_start_date, c.valid_end_date,c.valid_type,cs.send_sms,c.valid_days |
|
|
|
</sql> |
|
|
|
|
|
|
|
|