Browse Source

特殊订单选择商品控制领域

hu 2 years ago
parent
commit
063331400f

+ 4 - 1
src/custom/restcontroller/webmanage/sale/order/SQL/查询可添加商品列表_特殊订单.sql

@@ -29,4 +29,7 @@ from plm_item t1
          LEFT JOIN plm_unit t5 ON t5.unitid = t2.auxunitid AND t5.siteid = t2.siteid
 WHERE t1.siteid = $siteid$
   and t1.status = '审核'
-  and $where$
+  and $where$
+  and t1.itemid in (SELECT t1.itemid
+                    from plm_item_tradefield t1 WHERE t1.tradefield =  $tradefield$
+                     and t1.siteid = $siteid$)