@@ -71,9 +71,7 @@
</select>
<select id="getRecommendCouponByGoodsId" resultType="com.cyksj.model.entity.Coupon">
- select c.id,
- c.scope,
- cr.id as recommendId
+ select c.*
from coupon_recommend cr inner join coupon c on c.id = cr.coupon_id
where cr.deleted is true and c.deleted is true and cr.status is true
and (cr.up_time is null or cr.up_time <= now()) and (cr.down_time is null or cr.down_time > now())