Commit 6db8641c by 朱继来

调整

parent fdc36d3f
Showing with 5 additions and 1 deletions
......@@ -609,7 +609,11 @@ class ApiController extends Controller
$com_name = DB::connection('order')->table('lie_invoice_company')->where('id', $com_id)->value('com_name');
if (!$com_name) $this->Export(-1, '当前公司不存在');
$invoice = DB::connection('order')->table('lie_taxinfo')->where(['tax_title'=>$com_name, 'inv_type'=>$invoice_type])->first();
$map = [];
$map['tax_title'] = $com_name;
$map['user_id'] = $user_id;
$map['inv_type'] = $invoice_type;
$invoice = DB::connection('order')->table('lie_taxinfo')->where($map)->first();
$tax_info['tax_id'] = isset($invoice) ? $invoice->tax_id : 0;
$tax_info['tax_title'] = isset($invoice) ? $invoice->tax_title : '';
......
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