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}