Commit 5a689ab8 authored by zhuwei's avatar zhuwei

业绩明细不显示已撤销的成交报告

parent 0212591c
......@@ -294,14 +294,13 @@ class Member extends Basic{
#if_search_user 存在精确搜索客户姓名,电话,编号 则变成 false
//$where['a.site_ids'] = [ 'LIKE', '%' . $this->siteId . '%' ];//默认显示经纪人所在站点的客户
if (!empty($this->params['site_id'])) {
$service_broker = new BrokerService();
$check_data = $service_broker->checkSite($this->userId, $this->params['site_id']);
if ($check_data) {
$where['a.site_ids'] = [ 'LIKE', '%' . $this->params['site_id'] . '%' ];
} else {
$where['a.site_ids'] = [ 'LIKE', '%' . $this->siteId . '%' ];
}
$service_broker = new BrokerService();
$check_data = $service_broker->checkSite($this->userId, $this->params['site_id']);
if ($check_data && !empty($this->params['site_id'])) {
$where['a.site_ids'] = [ 'LIKE', '%' . $this->params['site_id'] . '%' ];
} else {
$where['a.site_ids'] = [ 'LIKE', '%' . $this->siteId . '%' ];
}
}
//dump($where);exit;
......
......@@ -35,7 +35,7 @@ class PerformanceInfo extends Basic
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize'];
$where['Obargain.status'] = array('neq',30);
$where['Obargain.status'] = array('in','10,11,13,20');
/*开始结束时间*/
if (($this->params['create_time_start'] != NULL) && ($this->params['create_time_end'] != NULL)) {
$where['Obargain.create_time'] = ['between time', [$this->params['create_time_start']. ' 00:00:00', $this->params['create_time_end'] . ' 23:59:59']];
......@@ -135,7 +135,7 @@ class PerformanceInfo extends Basic
public function getPerformanceInfoExcel()
{
$where['Obargain.status'] = array('neq',30);
$where['Obargain.status'] = array('in','10,11,13,20');
/*开始结束时间*/
if (($this->params['create_time_start'] != NULL) && ($this->params['create_time_end'] != NULL)) {
$where['Obargain.create_time'] = ['between time', [$this->params['create_time_start']. ' 00:00:00', $this->params['create_time_end'] . ' 23:59:59']];
......
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