zhijiezhao 10 months ago
parent
commit
2180e93126
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/resources/mappings/modules/product/CmPromotionMapper.xml

+ 1 - 0
src/main/resources/mappings/modules/product/CmPromotionMapper.xml

@@ -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=",">