zoujiajian před 3 roky
rodič
revize
5851ff80a1

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

@@ -28,9 +28,9 @@
         end) as `order`
         from coupon_recommend cr left join coupon c on c.id = cr.coupon_id
         left join coupon_user cu on cu.coupon_id = c.id and cu.user_id = #{userId}
-        where cr.deleted is true and c.deleted is true
+        where cr.deleted is true and c.deleted is true and cr.status = 1
         <if test='!isNewUser'>
             and c.scope !='newUser'
-        </if>)s where couponStatus != 'used' order by `order`
+        </if>)s where couponStatus != 'used' and cr.status = 1 and cr.deleted is true order by `order`
     </select>
 </mapper>