Commit bba6303c authored by zhuwei's avatar zhuwei

业绩明细bug

parent 5e4979d5
...@@ -55,7 +55,8 @@ class PerformanceInfo extends Basic ...@@ -55,7 +55,8 @@ class PerformanceInfo extends Basic
} }
// 商铺编号 // 商铺编号
if ($this->params['house_id'] != NULL) { if ($this->params['house_id'] != NULL) {
$where['Houses.id'] = $this->params['house_id']; $where['Oorder.house_id'] = $this->params['house_id'];
} }
// 部门 // 部门
...@@ -85,7 +86,7 @@ class PerformanceInfo extends Basic ...@@ -85,7 +86,7 @@ class PerformanceInfo extends Basic
if ($this->params['bargain_id'] != NULL) { if ($this->params['bargain_id'] != NULL) {
$where['Obargain.id'] = $this->params['bargain_id']; $where['Obargain.id'] = $this->params['bargain_id'];
} }
//dump($where);
$field = 'Obargain.create_time,'; $field = 'Obargain.create_time,';
$field .= 'Obargain.id,'; $field .= 'Obargain.id,';
$field .= 'Obargain.father_id,'; $field .= 'Obargain.father_id,';
...@@ -152,7 +153,7 @@ class PerformanceInfo extends Basic ...@@ -152,7 +153,7 @@ class PerformanceInfo extends Basic
} }
// 商铺编号 // 商铺编号
if ($this->params['house_id'] != NULL) { if ($this->params['house_id'] != NULL) {
$where['Houses.id'] = $this->params['house_id']; $where['Oorder.house_id'] = $this->params['house_id'];
} }
// 部门 // 部门
......
...@@ -1411,7 +1411,7 @@ class OBargainModel extends Model ...@@ -1411,7 +1411,7 @@ class OBargainModel extends Model
->limit($pageSize) ->limit($pageSize)
->page($pageNo) ->page($pageNo)
->select(); ->select();
// echo $this->db_->getLastSql(); //echo $this->db_->getLastSql();
return $result; return $result;
} }
...@@ -1451,6 +1451,8 @@ class OBargainModel extends Model ...@@ -1451,6 +1451,8 @@ class OBargainModel extends Model
->join("a_agents Agent", "Obargain.agent_id = Agent.id", "left") ->join("a_agents Agent", "Obargain.agent_id = Agent.id", "left")
->join('a_store Store', 'Agent.store_id = Store.id', 'left') ->join('a_store Store', 'Agent.store_id = Store.id', 'left')
->join('a_district District', 'Agent.district_id = District.id', 'left') ->join('a_district District', 'Agent.district_id = District.id', 'left')
->join('o_partial_commission PartialCommission', 'PartialCommission.bargain_id = Obargain.id', 'left')
->where($where) ->where($where)
->count(); ->count();
// echo $this->db_->getLastSql(); // echo $this->db_->getLastSql();
......
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