Commit b17f5c98 authored by hujun's avatar hujun

site_id

parent 090752ba
...@@ -221,16 +221,10 @@ class Refund extends Basic ...@@ -221,16 +221,10 @@ class Refund extends Basic
$where['a.status'] = ['in', '0,1']; $where['a.status'] = ['in', '0,1'];
} else { } else {
$where['a.status'] = $this->params['status']; $where['a.status'] = $this->params['status'];
if ($this->params['status'] == '0') {
$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 (!empty($this->params['site_id'])) {
$where['c.site_id'] = $this->params['site_id']; $where['c.site_id'] = $this->params['site_id'];
} }
...@@ -383,16 +377,10 @@ class Refund extends Basic ...@@ -383,16 +377,10 @@ class Refund extends Basic
$where['a.status'] = ['in', '0,1']; $where['a.status'] = ['in', '0,1'];
} else { } else {
$where['a.status'] = $this->params['status']; $where['a.status'] = $this->params['status'];
if ($this->params['status'] == '0') {
$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 (!empty($this->params['site_id'])) {
$where['c.site_id'] = $this->params['site_id']; $where['c.site_id'] = $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