Commit d2188fd3 by 朱继来

Merge branch 'zjl_inquiry_order_20210311'

parents 1b12633c 68e0eb8f
Showing with 3 additions and 3 deletions
...@@ -574,10 +574,10 @@ class ApiController extends Controller ...@@ -574,10 +574,10 @@ class ApiController extends Controller
$map['sale_id'] = $request->user->userId; $map['sale_id'] = $request->user->userId;
$map['status'] = 0; $map['status'] = 0;
$com_id = DB::connection('crm')->table('invoice_com_user')->where($map)->value('com_id'); $com_info = DB::connection('crm')->table('invoice_com_user')->where($map)->first();
if (!$com_id) $this->Export(-1, '当前登录用户未绑定该联系人'); if (!$com_info) $this->Export(-1, '当前登录用户未绑定该联系人');
$com_name = DB::connection('crm')->table('invoice_company')->where('id', $com_id)->value('com_name'); $com_name = DB::connection('crm')->table('invoice_company')->where('id', $com_info->id)->value('com_name');
$this->Export(0, '', ['com_id'=>$com_id, 'com_name'=>$com_name, 'user_id'=>$user_id, 'account'=>$account]); $this->Export(0, '', ['com_id'=>$com_id, 'com_name'=>$com_name, 'user_id'=>$user_id, 'account'=>$account]);
} }
......
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