@@ -205,6 +205,7 @@
cp.type = #{promotionType}
AND cp.delFlag = 0
AND cpp.productId != 0
+ AND IF(cp.status = 2,cp.endTime>NOW(),1=1)
<if test="delIdList != null and delIdList.size > 0">
AND cpp.productId NOT IN
<foreach collection="delIdList" open="(" close=")" item="delId" separator=",">