|
@@ -46,7 +46,7 @@ class AgentWhere extends Criteria {
|
|
$model = $model->where([['store_id',$this->store_id]]);
|
|
$model = $model->where([['store_id',$this->store_id]]);
|
|
}
|
|
}
|
|
if (isset($this->search['status']) && $this->search['status']) {
|
|
if (isset($this->search['status']) && $this->search['status']) {
|
|
- $status = $this->search['status'];dd(11);
|
|
|
|
|
|
+ $status = $this->search['status'];
|
|
$model = $model->whereHas('user', function ($model) use ($status) {
|
|
$model = $model->whereHas('user', function ($model) use ($status) {
|
|
if ($status == 3) {
|
|
if ($status == 3) {
|
|
$model->where('is_boss', 1);
|
|
$model->where('is_boss', 1);
|