曾超新 5 years ago
parent 1b93804ffe
commit c3f83abc57
  1. 6
      frontend/controllers/PhoneCenterController.php

@ -80,10 +80,10 @@ class PhoneCenterController extends BaseController
$query->andWhere('user_t.id="'.$this->my->id.'"'); $query->andWhere('user_t.id="'.$this->my->id.'"');
} }
if($begin_time != ''){ if($begin_time != ''){
$query->andWhere('network_phone_t.begin_date>="'.$begin_time.'"'); $query->andWhere('network_phone_t.begin_time>="'.$begin_time.'"');
} }
if($end_time != ''){ if($end_time != ''){
$query->andWhere('network_phone_t.begin_date<="'.$end_time.'"'); $query->andWhere('network_phone_t.begin_time<="'.$end_time.'"');
} }
if($caller != ''){ if($caller != ''){
$query->andWhere('network_phone_t.caller='.$caller); $query->andWhere('network_phone_t.caller='.$caller);
@ -108,7 +108,7 @@ class PhoneCenterController extends BaseController
if($username != ''){ if($username != ''){
$query->andWhere('user_t.username="'.$username.'"'); $query->andWhere('user_t.username="'.$username.'"');
} }
echo $query->createCommand()->rawSql; // echo $query->createCommand()->rawSql;
$total = $query->count(); $total = $query->count();
$query->offset($offset)->limit($limit); $query->offset($offset)->limit($limit);

Loading…
Cancel
Save