Commit 4e7dd112 authored by zhuwei's avatar zhuwei

业绩明显excel

parent 95a3942b
......@@ -175,6 +175,12 @@ class PerformanceInfo extends Basic
$where['Agent.phone'] = ['like', '%'.$this->params['phone'].'%'];
}
// 成交报告id
if ($this->params['bargain_id'] != NULL) {
$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];
}
$field = 'Obargain.create_time,';
$field .= 'Obargain.id,';
$field .= 'Obargain.father_id,';
......
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