select DISTINCT c.workflowname,b.TABLENAME,a.* from  workflow_billfield a join workflow_bill  b on a.BILLID =b.id left join workflow_base c on c.formid = a.billid  where a.FIELDDBTYPE='38506' //树的id