|
|
@ -67,14 +67,6 @@ class PhoneCenterController extends BaseController |
|
|
|
|
|
|
|
|
|
|
|
$company_type = $request->get('company_type',0);//0显示全部,1只显示江西,2只显示湖北 |
|
|
|
$company_type = $request->get('company_type',0);//0显示全部,1只显示江西,2只显示湖北 |
|
|
|
|
|
|
|
|
|
|
|
if($company_type == 1){ |
|
|
|
|
|
|
|
$company_id=2; |
|
|
|
|
|
|
|
}elseif ($company_type == 2){ |
|
|
|
|
|
|
|
$company_id=3; |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
$company_id=0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$query = NetworkPhoneT::find() |
|
|
|
$query = NetworkPhoneT::find() |
|
|
|
->leftJoin('user_t','user_t.id=network_phone_t.user_id') |
|
|
|
->leftJoin('user_t','user_t.id=network_phone_t.user_id') |
|
|
|
->where('user_t.is_delete=0 and user_t.is_leave=0'); |
|
|
|
->where('user_t.is_delete=0 and user_t.is_leave=0'); |
|
|
@ -111,9 +103,6 @@ class PhoneCenterController extends BaseController |
|
|
|
if($username != ''){ |
|
|
|
if($username != ''){ |
|
|
|
$query->andWhere('user_t.username="'.$username.'"'); |
|
|
|
$query->andWhere('user_t.username="'.$username.'"'); |
|
|
|
} |
|
|
|
} |
|
|
|
if($company_id > 0) { |
|
|
|
|
|
|
|
$query->andWhere('user_t.company_id='.$company_id); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$total = $query->count(); |
|
|
|
$total = $query->count(); |
|
|
|
|
|
|
|
|
|
|
|