浏览代码

促销活动中已经下架的活动商品在商城不用显示关联活动标题

hu 1 年之前
父节点
当前提交
c4e6ba8dab
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/custom/restcontroller/sale/itemgroup/SQL/查询商品所在有效活动.sql

+ 1 - 1
src/custom/restcontroller/sale/itemgroup/SQL/查询商品所在有效活动.sql

@@ -1,4 +1,4 @@
 select t1.sa_promotionid,t1.promname from sa_promotion t1
      inner join sa_promotion_items t2 on t1.sa_promotionid=t2.sa_promotionid and t1.siteid=t2.siteid
      inner join plm_item t3 on t2.itemid=t3.itemid and t2.siteid=t3.siteid
-     where t1.sa_promotionid in $sa_promotionids$ and t3.itemno=$itemno$ and t1.siteid=$siteid$
+     where t1.sa_promotionid in $sa_promotionids$ and t3.itemno=$itemno$ and t1.siteid=$siteid$ and t2.isonsale=1