Commit 1133c385 authored by clone's avatar clone

bug

parent 6b9e9b61
...@@ -616,7 +616,7 @@ class OrderLog extends Basic ...@@ -616,7 +616,7 @@ class OrderLog extends Basic
if (!isset($params["order_id"])) { if (!isset($params["order_id"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
$field = "id,order_id,account_statement"; $field = "id,order_id,account_statement,house_number,is_open";
$where_["order_id"] = $params["order_id"]; $where_["order_id"] = $params["order_id"];
$where_["father_id"] = 0; $where_["father_id"] = 0;
$where_["account_statement"] = 0; $where_["account_statement"] = 0;
......
...@@ -811,9 +811,21 @@ class OrderLogService ...@@ -811,9 +811,21 @@ class OrderLogService
{ {
$bargainModel = new OBargainModel(); $bargainModel = new OBargainModel();
$filed = "a.id,a.trade_type,a.price,a.submit_agent_id,a.commission,a.role, $bargain_info_filed = "a.id,a.house_number,a.is_open,a.trade_type,a.price,a.commission,c.id,c.internal_title,
a.agent_id,a.scale,a.scale_fee,a.status,b.name,b.phone"; c.internal_address,d.user_id,d.user_phone,d.user_name";
return $bargainModel->selectBargainDetail($filed, $params);
/**
* ->join("o_order b" ,"a.order_id = b.id","left")
->join("g_houses c" ,"b.house_id = b.id","left")
->join("o_report d","a.report_id = d.id","left")
*/
$bargainInfo = $bargainModel->selectBargainDetail($bargain_info_filed, $params);
if(count($bargainInfo) > 0){
}
//分佣提成
} }
......
...@@ -213,13 +213,14 @@ class OBargainModel extends Model ...@@ -213,13 +213,14 @@ class OBargainModel extends Model
$where_ = $whereOr_ =[]; $where_ = $whereOr_ =[];
if (isset($params["bargain_id"])) { if (isset($params["bargain_id"])) {
$where_["a.id"] = $params["bargain_id"]; $where_["a.id"] = $params["bargain_id"];
$whereOr_["a.father_id"] = $params["bargain_id"];
} }
$result = $this->db_ $result = $this->db_
->field($filed) ->field($filed)
->alias("a") ->alias("a")
->join("a_agents b" ,"a.agent_id = b.id","left") ->join("o_order b" ,"a.order_id = b.id","left")
->join("g_houses c" ,"b.house_id = b.id","left")
->join("o_report d","a.report_id = d.id","left")
->where($where_) ->where($where_)
->whereOr($whereOr_) ->whereOr($whereOr_)
->order("a.id asc") ->order("a.id asc")
......
...@@ -11,6 +11,7 @@ namespace app\model; ...@@ -11,6 +11,7 @@ namespace app\model;
class OPartialCommission extends BaseModel class OPartialCommission extends BaseModel
{ {
protected $table = "o_partial_commission";
/** /**
* 成交报告分佣表 * 成交报告分佣表
* *
......
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