修复工作量统计,无法搜索用户名BUG

wanfang
曾超新 5 years ago
parent a1703a62e1
commit da02828c2c
  1. 4
      frontend/controllers/StatisticsController.php

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

Loading…
Cancel
Save