Commit 46b8a62b authored by zhuwei's avatar zhuwei

bug

parent 01cff5db
...@@ -400,13 +400,14 @@ class Finance extends Basic ...@@ -400,13 +400,14 @@ class Finance extends Basic
if (empty($this->params['id'])) { if (empty($this->params['id'])) {
$data['code'] = 101; $data['code'] = 101;
$data['msg'] = 'Id is null.'; $data['msg'] = 'Id is null.';
} else { } else {
$fields = 'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.is_open,a.order_id,a.report_id,'; $fields = 'a.id,a.father_id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.is_open,a.order_id,a.report_id,';
$fields .= 'a.trade_type,a.house_number,a.commission,a.content,d.shop_type,a.industry_type,a.price,a.estimated_receipt_date,'; $fields .= 'a.trade_type,a.house_number,a.commission,a.content,d.shop_type,a.industry_type,a.price,a.estimated_receipt_date,';
$fields .= 'b.user_id,d.id as house_id'; $fields .= 'b.user_id,d.id as house_id';
$where['a.id'] = $this->params['id']; $where['a.id'] = $this->params['id'];
$data['data'] = $this->m_bargain->getBargainInfo($fields, $where); $data['data'] = $this->m_bargain->getBargainInfo($fields, $where);
$data['data']['bargain_id'] = $data['data']["father_id"] == 0 ? $data['data']["id"] : $data['data']["father_id"];//成交报告ID
} }
return $this->response($data['code'], $data['msg'], $data['data']); return $this->response($data['code'], $data['msg'], $data['data']);
......
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 to comment