eganwu 3 лет назад
Родитель
Сommit
0bf5a2c0f1

+ 1 - 1
src/custom/restcontroller/webmanage/sale/itempriceadjust/SQL/商品调价单商品明细列表情查询.sql

@@ -39,4 +39,4 @@ FROM sa_itempriceadjust_items t1
          left join plm_unit t8 on t7.siteid = t8.siteid and t7.unitid = t8.unitid
 WHERE t1.siteid = $siteid$
   and t1.sa_itempriceadjustid = $sa_itempriceadjustid$
-  and $where$
+  and $where$ and $tablefilter$

+ 1 - 1
src/custom/restcontroller/webmanage/sale/itempriceadjust/SQL/查询可添加商品.sql

@@ -3,6 +3,6 @@ from plm_item t1
          LEFT JOIN sa_itemsaleclass t2 ON t2.itemid = t1.itemid AND t2.siteid = t1.siteid
          LEFT JOIN plm_itemclass t3 ON t2.itemclassid = t3.itemclassid AND t2.siteid = t3.siteid
 where t1.siteid = $siteid$
-  and $where$
+  and $where$ and $tablefilter$
   and not exists(select 1 from sa_itempriceadjust_items where siteid= $siteid$ and sa_itempriceadjustid=$sa_itempriceadjustid$ and t1.itemid=itemid)
 group by t1.itemid, t1.itemname, t1.itemno, t1.model, t1.spec