@@ -33,9 +33,89 @@ class StudentController extends CommonController
*/
publicfunctionIndex()
{
// 获取列表
$where=array('us.user_id'=>$this->user['id']);
$list=$this->SetDataHandle(M('UserStudent')->alias('us')->join('__STUDENT__ AS s ON s.id=us.student_id ')->field('s.*, us.id AS user_student_id,us.add_time AS bundled_time')->where($where)->select());