|
|
@@ -79,7 +79,7 @@ public interface LiveCouponMapper
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"select lc.*,lci.id from live_coupon_issue lci left join live_coupon lc on lc.coupon_id=lci.coupon_id " +
|
|
|
- "where lci.status=1" +
|
|
|
+ "where lci.status=1 and lc.status=1 " +
|
|
|
" and lc.title like concat('%', #{couponName}, '%')" +
|
|
|
" and id not in (select coupon_issue_id as id from live_coupon_issue_relation where live_id = #{liveId})" +
|
|
|
"</script>"
|