|
|
|
@@ -765,12 +765,7 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findCouponByTopic" parameterType="com.iformall.domain.po.WxTopic" resultType="com.iformall.domain.po.WxCoupon"> |
|
|
|
select ct.id as id, |
|
|
|
wc.tenant_id,wc.`type`,wc.`cover_img`,wc.`title`,wc.`sub_title`,wc.`sale_price`,wc.`use_price`,wc.`use_limit_quantity`,wc.`send_type`, |
|
|
|
wc.`valid_type`,wc.`valid_start_date`,wc.`valid_end_date`,wc.`valid_days`,wc.`detail`,wc.`price`,wc.`unit`,wc.`remain_inventory`,wc.`inventory`, |
|
|
|
wc.`remark`,wc.`status`,wc.`create_date`,wc.`update_date`,wc.`business`,wc.`sub_business`,wc.`support_transfer`,wc.`subsidy_num`,wc.`subsidy_type`, |
|
|
|
wc.`press_limit_num`, wc.`press_limit_hours`, wc.`auto_refund`,wc.`credit_price`,wc.`credit_refund` |
|
|
|
,wc.title as couponName,wc.`cover_img` as couponPic,wc.id as couponId from wx_coupon_channel ct left join |
|
|
|
select wc.* from wx_coupon_channel ct left join |
|
|
|
wx_coupon wc on wc.id = ct.coupon_id |
|
|
|
where ct.`sub_target_id` = #{id} |
|
|
|
</select> |
|
|
|
|