@@ -59,7 +59,7 @@
</select>
<select id="checkPresentRecommendByCouponId" resultType="java.lang.Integer">
- select cr.coupon_id
+ select count(1)
from coupon_recommend cr
inner join coupon c on c.id = cr.coupon_id
where cr.coupon_id = #{couponId}