Commit 4c91fb19 authored by hujun's avatar hujun

后台查询1盘方,2客方,3反签,4独家,5合作方

parent da4cdf3b
...@@ -180,7 +180,7 @@ class Finance extends Basic ...@@ -180,7 +180,7 @@ class Finance extends Basic
$data['msg'] = 'Id is null.'; $data['msg'] = 'Id is null.';
} else { } else {
$bargain = new OBargainModel(); $bargain = new OBargainModel();
$fields = 'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.is_open,'; $fields = 'a.id,a.create_time,b.user_phone,b.user_name,d.internal_title,d.internal_address,a.is_open,a.order_id,';
$fields .= 'a.trade_type,a.house_number,a.commission,a.content,d.shop_type'; $fields .= 'a.trade_type,a.house_number,a.commission,a.content,d.shop_type';
$where['a.id'] = $this->params['id']; $where['a.id'] = $this->params['id'];
$data['data'] = $bargain->getBargainInfo($fields, $where); $data['data'] = $bargain->getBargainInfo($fields, $where);
...@@ -612,4 +612,34 @@ class Finance extends Basic ...@@ -612,4 +612,34 @@ class Finance extends Basic
$data = $m_fee->addFee($this->params['tallage'], $this->params['bargain_id'], 1, $this->userId); $data = $m_fee->addFee($this->params['tallage'], $this->params['bargain_id'], 1, $this->userId);
return $this->response("200", "request success", $data); return $this->response("200", "request success", $data);
} }
/**
* 成交报告经纪人搜索
*
* @return \think\Response
*/
public function searchBargainAgents()
{
$service_ = new OrderLogService();
$params = $this->params;
/* $params = array(
"type" => 1,//1盘方,2客方,3反签,4独家,5合作方
"order_id" => 36,
);*/
if (!isset($params["type"]) || !isset($params["order_id"])) {
return $this->response("101", "请求参数错误");
}
try {
$list = $service_->searchBargainAgents($params["type"], $params["order_id"]);
if (count($list) > 0) {
return $this->response("200", "request success", $list);
} else {
return $this->response("200", "request null");
}
} catch (Exception $e) {
return $this->response("101", "request error,msg:" . $e);
}
}
} }
...@@ -220,6 +220,7 @@ Route::group('index', [ ...@@ -220,6 +220,7 @@ Route::group('index', [
'addRealIncome' => ['index/Finance/addRealIncome', [ 'method' => 'POST' ] ], //增加和编辑实收佣金 'addRealIncome' => ['index/Finance/addRealIncome', [ 'method' => 'POST' ] ], //增加和编辑实收佣金
'getTallAge' => ['index/Finance/getTallAge', [ 'method' => 'GET' ] ], //开票税费查询 'getTallAge' => ['index/Finance/getTallAge', [ 'method' => 'GET' ] ], //开票税费查询
'addTallAge' => ['index/Finance/addTallAge', [ 'method' => 'POST' ] ], //新增和编辑开票税费 'addTallAge' => ['index/Finance/addTallAge', [ 'method' => 'POST' ] ], //新增和编辑开票税费
'searchBargainAgents' => ['index/Finance/searchBargainAgents', [ 'method' => 'GET' ] ], //新增和编辑开票税费
'test123' => ['index/WatchShop/test123', [ 'method' => 'get|post' ] ], //时间轴 'test123' => ['index/WatchShop/test123', [ 'method' => 'get|post' ] ], //时间轴
'agent_zhuan_aagent' => [ 'index/agent/agent_zhuan_aagent', [ 'method' => 'post|get' ] ],//经纪人 'agent_zhuan_aagent' => [ 'index/agent/agent_zhuan_aagent', [ 'method' => 'post|get' ] ],//经纪人
'shop_a_store' => [ 'index/agent/shop_a_store', [ 'method' => 'post|get' ] ],//经纪人 'shop_a_store' => [ 'index/agent/shop_a_store', [ 'method' => 'post|get' ] ],//经纪人
......
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