作者 xiaohu thinkpad

统计学时问题修复

@@ -2092,7 +2092,7 @@ function id_xueshi($id){ @@ -2092,7 +2092,7 @@ function id_xueshi($id){
2092 ->field(' SUM(yuyue_end - yuyue_begin) as yyxs ') 2092 ->field(' SUM(yuyue_end - yuyue_begin) as yyxs ')
2093 ->select()->toArray(); 2093 ->select()->toArray();
2094 // return Db::name('yuyue')->getLastSql(); 2094 // return Db::name('yuyue')->getLastSql();
2095 - return json($name) ; 2095 + return json_encode($name,true) ;
2096 $yyxs = $name ? $name['yyxs'] : 0; 2096 $yyxs = $name ? $name['yyxs'] : 0;
2097 return $yyxs; 2097 return $yyxs;
2098 } 2098 }