修复通话记录功能

dev
曾超新 5 years ago
parent 42ee5be039
commit 854c8cdd6c
  1. 11
      frontend/controllers/PhoneCenterController.php

@ -67,14 +67,6 @@ class PhoneCenterController extends BaseController
$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()
->leftJoin('user_t','user_t.id=network_phone_t.user_id')
->where('user_t.is_delete=0 and user_t.is_leave=0');
@ -111,9 +103,6 @@ class PhoneCenterController extends BaseController
if($username != ''){
$query->andWhere('user_t.username="'.$username.'"');
}
if($company_id > 0) {
$query->andWhere('user_t.company_id='.$company_id);
}
$total = $query->count();

Loading…
Cancel
Save