|
|
and t1.sa_promotionid not in (select ifnull(sa_openpromotionid,0) from sa_promotion where STATUS = '发布' AND DATE_FORMAT( now(), '%Y-%m-%d' )>= DATE_FORMAT( t1.begdate, '%Y-%m-%d' ) AND DATE_FORMAT( now(), '%Y-%m-%d' )<= DATE_FORMAT( t1.enddate, '%Y-%m-%d' ) )
|
|
and t1.sa_promotionid not in (select ifnull(sa_openpromotionid,0) from sa_promotion where STATUS = '发布' AND DATE_FORMAT( now(), '%Y-%m-%d' )>= DATE_FORMAT( t1.begdate, '%Y-%m-%d' ) AND DATE_FORMAT( now(), '%Y-%m-%d' )<= DATE_FORMAT( t1.enddate, '%Y-%m-%d' ) )
|