...
|
...
|
@@ -37,7 +37,7 @@ class ProfileController extends UserBaseController |
|
|
->where(['teach_id' => $uid, 'status' => 3])
|
|
|
->field(' SUM(yuyue_end - yuyue_begin) as yyxs ')
|
|
|
->select()->toArray();
|
|
|
$yyxs = $yyxs ? $yyxs['yyxs'] : 0;
|
|
|
$yyxs = $name ? $name[0]['yyxs'] : '0';
|
|
|
$this->assign("yyxs", $yyxs);
|
|
|
return $this->fetch('percenter_coach');
|
|
|
} else {
|
...
|
...
|
@@ -45,7 +45,7 @@ class ProfileController extends UserBaseController |
|
|
->where(['uid' => $uid, 'status' => 3])
|
|
|
->field(' SUM(yuyue_end - yuyue_begin) as yyxs ')
|
|
|
->select()->toArray();
|
|
|
$yyxs = $yyxs ? $yyxs['yyxs'] : 0;
|
|
|
$yyxs = $name ? $name[0]['yyxs'] : '0';
|
|
|
$this->assign("yyxs", $yyxs);
|
|
|
return $this->fetch('percenter_stu');
|
|
|
}
|
...
|
...
|
|