作者 xiaohu thinkpad

统计学时问题修复

@@ -2091,6 +2091,8 @@ function id_xueshi($id){ @@ -2091,6 +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 + echo Db::name('yuyue')->getLastSql();
  2095 + var_dump($name);
2094 $yyxs = $name ? $name['yyxs'] : 0; 2096 $yyxs = $name ? $name['yyxs'] : 0;
2095 return $yyxs; 2097 return $yyxs;
2096 } 2098 }