Przeglądaj źródła

商品组商品查询bug修复

hu 3 lat temu
rodzic
commit
5735e32493

+ 1 - 3
src/custom/restcontroller/webmanage/sale/itemgroup/SQL/商品查询.sql

@@ -17,6 +17,4 @@ where $where$
   and t1.siteid = $siteid$
   and ifnull(t1.isonsale, 0) = 1
   and ifnull(t1.sa_customschemeid,0)!=0
-  and not exists(select 1
-                 from sa_itemgroupmx
-                 where siteid = $siteid$ and itemid = t1.itemid)
+  and not exists(select 1 from sa_itemgroupmx t inner join sa_itemgroup t2 on t.sa_itemgroupid=t2.sa_itemgroupid and t.siteid=t2.siteid where t.siteid = $siteid$ and t.itemid = t1.itemid)