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}