查询商品费用方案方法.sql 330 B

123456
  1. SELECT DISTINCT t3.functionname
  2. from sa_orderitems t1
  3. INNER JOIN sys_datafunction_bind t2 ON t2.ownerid = t1.itemid and t2.ownertable = 'plm_item'
  4. INNER JOIN sys_datafunction t3 ON t3.sys_datafunctionid = t2.sys_datafunctionid
  5. WHERE t1.sa_orderid = $sa_orderid$
  6. and t1.siteid = $siteid$ and t3.status='启用'