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}