Commit f00b73c8 by 连敬荣

新增报价公司匹配报价人

parent e2a15550
Showing with 2 additions and 1 deletions
......@@ -243,7 +243,7 @@ class CommonModel extends Model
public function getSupplierList($supplier_name,$user_id){
$code_id = DB::connection('mysql')->select("select code_id as channel_id from lie_intracode where admin_id = ".$user_id);
$channel_id = $code_id[0]['channel_id'];
$supplierInfo = DB::connection('ass')->select("select supplier_id as value, supplier_name as name from lie_supplier_channel where status = 2 and supplier_name like '%".$supplier_name."%' limit 10");
$supplierInfo = DB::connection('ass')->select("select supplier_id as value, supplier_name as name from lie_supplier_channel where status = 2 and supplier_name like '%".$supplier_name."%' and channel_uid like '%".$channel_id."%' limit 10");
echo json_encode($supplierInfo,JSON_UNESCAPED_UNICODE) ;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment