zoujiajian пре 1 година
родитељ
комит
f5060bbcbe
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      netflix-dao/src/main/resources/mapper/CouponRecommendMapper.xml

+ 1 - 1
netflix-dao/src/main/resources/mapper/CouponRecommendMapper.xml

@@ -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}