Commit 6030df5b authored by hujun's avatar hujun

site_id

parent d590faa5
...@@ -406,6 +406,10 @@ class Broker extends Basic ...@@ -406,6 +406,10 @@ class Broker extends Basic
$where['a.district_id'] = $params['district_id']; $where['a.district_id'] = $params['district_id'];
} }
if (!empty($params['site_id'])) {
$where['a.site_id'] = $params['site_id'];
}
if (!empty($params['id_card'])) { if (!empty($params['id_card'])) {
$m_bank = new AAgentsBank(); $m_bank = new AAgentsBank();
$agent_id = $m_bank->getFieldOneValue('agent_id', ['id_card'=>$params['id_card'], 'is_del'=>0]); $agent_id = $m_bank->getFieldOneValue('agent_id', ['id_card'=>$params['id_card'], 'is_del'=>0]);
......
...@@ -167,6 +167,11 @@ class PayLogOpen extends Basic ...@@ -167,6 +167,11 @@ class PayLogOpen extends Basic
$where['c.district_id'] = $this->params['district_id']; $where['c.district_id'] = $this->params['district_id'];
} }
//所属城市
if (isset($this->params['site_id'])) {
$where['c.site_id'] = $this->params['site_id'];
}
$where['a.is_del'] = 0; $where['a.is_del'] = 0;
$fields = 'a.id,a.create_time,a.pay_log_id,a.bargain_id,a.order_id,a.house_id,a.status,a.house_address,c.name'; $fields = 'a.id,a.create_time,a.pay_log_id,a.bargain_id,a.order_id,a.house_id,a.status,a.house_address,c.name';
......
...@@ -92,6 +92,10 @@ class PerformanceInfo extends Basic ...@@ -92,6 +92,10 @@ class PerformanceInfo extends Basic
$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)'; $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]; $where[] = ['EXP',$exp];
} }
if (!empty($this->params['site_id'])) {
$where['Agent.site_id'] = $this->params['site_id'];
}
//dump($where); //dump($where);
$field = 'Obargain.create_time,'; $field = 'Obargain.create_time,';
$field .= 'Obargain.id,'; $field .= 'Obargain.id,';
...@@ -216,6 +220,10 @@ class PerformanceInfo extends Basic ...@@ -216,6 +220,10 @@ class PerformanceInfo extends Basic
$where[] = ['EXP',$exp]; $where[] = ['EXP',$exp];
} }
if (!empty($this->params['site_id'])) {
$where['Agent.site_id'] = $this->params['site_id'];
}
$field = 'Obargain.create_time,'; $field = 'Obargain.create_time,';
$field .= 'Obargain.id,'; $field .= 'Obargain.id,';
$field .= 'Obargain.father_id,'; $field .= 'Obargain.father_id,';
......
...@@ -226,6 +226,8 @@ class Refund extends Basic ...@@ -226,6 +226,8 @@ class Refund extends Basic
$where['c.site_id'] = $this->siteId; $where['c.site_id'] = $this->siteId;
} }
} }
} else {
$where['c.site_id'] = $this->params['site_id'];
} }
if ($this->params['status'] > 0 && isset($this->params['site_id'])) { if ($this->params['status'] > 0 && isset($this->params['site_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