作者 lianghiu
... ... @@ -137,6 +137,7 @@ class CommentController extends AdminBaseController
$list = DB::name($this->table_name)
->alias('c')
->join('qnb_user u','u.id=c.teach_id')
->order('create_time desc')
->field('c.*')
->where($where)
->paginate(15);
... ... @@ -175,6 +176,7 @@ class CommentController extends AdminBaseController
->alias('c')
->join('qnb_user u','u.id=c.uid')
->field('c.*')
->order('create_time desc')
->where(['c.delete_time'=>0])
->paginate(15);
... ...
... ... @@ -95,7 +95,7 @@ class YuyueController extends UserBaseController
$rre = Db::name('commente')
->alias('c')
->join('qnb_user u', 'u.id = c.uid')
->where(['teach_id' => $id])
->where(['teach_id' => $id,'comment'=>['neq','']])
->field('c.*,u.user_nickname')
->select()
->toarray();
... ... @@ -220,7 +220,7 @@ class YuyueController extends UserBaseController
$rre = Db::name('commente')
->alias('c')
->join('qnb_user u', 'u.id = c.uid')
->where(['teach_id' => $id])
->where(['teach_id' => $id,'comment'=>['neq','']])
->field('c.*,u.user_nickname')
->select()
->toarray();
... ...
... ... @@ -155,7 +155,6 @@
<noempty name="pcdata">
<option value='{$pcdata.id}' checked>{$pcdata.user_nickname}</option>
</noempty>
<option value='-1'>全部</option>
<foreach name="cdata" id="vo">
<option value='{$vo.id}'>{$vo.user_nickname}</option>
</foreach>
... ...