|
@@ -17,7 +17,7 @@ class Trainactive extends Backend
|
|
|
* @var \app\admin\model\Trainactive
|
|
|
*/
|
|
|
protected $model = null;
|
|
|
- protected $noNeedLogin = ['qrcode','showinfo'];
|
|
|
+ protected $noNeedLogin = ['qrcode','showinfo','nograde'];
|
|
|
|
|
|
public function _initialize()
|
|
|
{
|
|
@@ -177,4 +177,19 @@ class Trainactive extends Backend
|
|
|
$this->view->engine->layout(false);
|
|
|
return $this->view->fetch();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 未到用户
|
|
|
+ */
|
|
|
+ public function nograde(){
|
|
|
+ $id = input('id');
|
|
|
+ $info = Db::name('train_active')->where('id',$id)->find();
|
|
|
+ $user_ids = $info['user_ids'];
|
|
|
+
|
|
|
+ $grade_uids = Db::name('user_train')->where('train_id',$id)->column('user_id');
|
|
|
+
|
|
|
+ $lists = Db::name('user')->where('id','IN',$user_ids)->where('id','NOTIN',$grade_uids)->select();
|
|
|
+ $this->assign('lists',$lists);
|
|
|
+ return $this->view->fetch();
|
|
|
+ }
|
|
|
}
|