diff --git a/frontend/controllers/StatisticsController.php b/frontend/controllers/StatisticsController.php index d394593..d696dd5 100644 --- a/frontend/controllers/StatisticsController.php +++ b/frontend/controllers/StatisticsController.php @@ -56,13 +56,11 @@ class StatisticsController extends BaseController // 现在的搜索条件 $userSql = ''; if($username != '') { - $userSql = ' username like "'.$username.'" and '; + $userSql = ' username like "'.$username.'" '; } //$userSql .= 'is_locked=0 and is_login=1'; $user_items = $this->my->getChildren($userSql); - if($this->my->username == '6002') - $user_items = $this->my->getChildren($userSql,1); $user_rows = array(); $sum_total = array(); $sum_total[0] = '';