Commit 80a29dd0 authored by zhuwei's avatar zhuwei

成交报告id 业绩明显优化

parent d744c856
...@@ -84,7 +84,8 @@ class PerformanceInfo extends Basic ...@@ -84,7 +84,8 @@ class PerformanceInfo extends Basic
// 成交报告id // 成交报告id
if ($this->params['bargain_id'] != NULL) { if ($this->params['bargain_id'] != NULL) {
$where['Obargain.id'] = $this->params['bargain_id']; $exp ='(Obargain.id = '.$this->params['bargain_id'] .' and Obargain.father_id = 0) or (Obargain.father_id = '.$this->params['bargain_id'] .' and Obargain.father_id > 0)';
$where[] = ['EXP',$exp];
} }
//dump($where); //dump($where);
$field = 'Obargain.create_time,'; $field = 'Obargain.create_time,';
......
...@@ -1408,7 +1408,7 @@ class OBargainModel extends Model ...@@ -1408,7 +1408,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;
} }
......
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