作者 xiaohu thinkpad

统计学时问题修复

... ... @@ -2091,6 +2091,8 @@ function id_xueshi($id){
->where(['uid'=>$id,'status'=>'3'])
->field(' SUM(yuyue_end - yuyue_begin) as yyxs ')
->select();
echo Db::name('yuyue')->getLastSql();
var_dump($name);
$yyxs = $name ? $name['yyxs'] : 0;
return $yyxs;
}
... ...