DBTool->queryBySql($sql); $data['code']=$rowset['code']; $data['info']=$rowset['info']; $data['supplier_list']=$rowset['rowset']; return $data; } //根据供应商的到采购人 function getPurchaseNameBySupplier($supplier_id){ $data=ifNullParam(array($supplier_id)); $data['purchase_people_list']=array(); if($data['code']!="0"){ return $data; } $sql="select id as purchaser_id,purchaser_name from base_supplier_purchase where supplier_id={$supplier_id} and product_type=25 and cancel_flag=0"; $data=array(); $rowset=$this->DBTool->queryBySql($sql); $data['code']=$rowset['code']; $data['info']=$rowset['info']; $data['purchase_people_list']=$rowset['rowset']; return $data; } }