作者 xiaohu thinkpad

统计学时问题修复

@@ -2091,8 +2091,8 @@ function id_xueshi($id){ @@ -2091,8 +2091,8 @@ function id_xueshi($id){
2091 ->where(['uid'=>$id,'status'=>'3']) 2091 ->where(['uid'=>$id,'status'=>'3'])
2092 ->field(' SUM(yuyue_end - yuyue_begin) as yyxs ') 2092 ->field(' SUM(yuyue_end - yuyue_begin) as yyxs ')
2093 ->select(); 2093 ->select();
2094 - return Db::name('yuyue')->getLastSql();  
2095 - var_dump($name); 2094 +// return Db::name('yuyue')->getLastSql();
  2095 + return $name ;
2096 $yyxs = $name ? $name['yyxs'] : 0; 2096 $yyxs = $name ? $name['yyxs'] : 0;
2097 return $yyxs; 2097 return $yyxs;
2098 } 2098 }