...
|
...
|
@@ -164,10 +164,10 @@ class Bind extends Api |
|
|
->where('user_id', $user['id'])
|
|
|
->value('id');
|
|
|
$data = \db('study_score_log l')
|
|
|
->distinct('campus_ids')
|
|
|
->join('campus c','c.id = l.campus_ids')
|
|
|
->distinct('campus_id')
|
|
|
->join('campus c','c.id = l.campus_id')
|
|
|
->where('study_id',$sid)
|
|
|
->field('campus_ids,c.title as campus_title')
|
|
|
->field('campus_id,c.title as campus_title')
|
|
|
->select();
|
|
|
if (empty($data)){
|
|
|
$this->error('当前学生还未有项目关联校区',['status'=>2]);
|
...
|
...
|
|