正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
@@ -103,12 +103,12 @@ class University extends Api | @@ -103,12 +103,12 @@ class University extends Api | ||
103 | $school_ids[] = $s_p['id']; | 103 | $school_ids[] = $s_p['id']; |
104 | } | 104 | } |
105 | $total2 = $studentModel->where([ | 105 | $total2 = $studentModel->where([ |
106 | -// 'level'=>'2', | ||
107 | -// 'show_switch'=>1, | 106 | + 'level'=>'2', |
107 | + 'show_switch'=>1, | ||
108 | 'university_id'=>$data['university_id'], | 108 | 'university_id'=>$data['university_id'], |
109 | 'school_id'=>['in',$school_ids], | 109 | 'school_id'=>['in',$school_ids], |
110 | 'college_id'=>$college_id, | 110 | 'college_id'=>$college_id, |
111 | -// 'deletetime'=>['exp',Db::raw('is null')] | 111 | + 'deletetime'=>['exp',Db::raw('is null')] |
112 | ])->count(); | 112 | ])->count(); |
113 | //获取当前用户同城市、大学、学院人数 | 113 | //获取当前用户同城市、大学、学院人数 |
114 | //获取当前用户同城市的高中 | 114 | //获取当前用户同城市的高中 |
@@ -118,12 +118,12 @@ class University extends Api | @@ -118,12 +118,12 @@ class University extends Api | ||
118 | $school_ids[] = $s_c['id']; | 118 | $school_ids[] = $s_c['id']; |
119 | } | 119 | } |
120 | $total3 = $studentModel->where([ | 120 | $total3 = $studentModel->where([ |
121 | -// 'level'=>'2', | ||
122 | -// 'show_switch'=>1, | 121 | + 'level'=>'2', |
122 | + 'show_switch'=>1, | ||
123 | 'university_id'=>$data['university_id'], | 123 | 'university_id'=>$data['university_id'], |
124 | 'school_id'=>['in',$school_ids], | 124 | 'school_id'=>['in',$school_ids], |
125 | 'college_id'=>$college_id, | 125 | 'college_id'=>$college_id, |
126 | -// 'deletetime'=>['exp',Db::raw('is null')] | 126 | + 'deletetime'=>['exp',Db::raw('is null')] |
127 | ])->count(); | 127 | ])->count(); |
128 | $result['data'] = $data; | 128 | $result['data'] = $data; |
129 | $result['total1'] = $total1; | 129 | $result['total1'] = $total1; |
-
请 注册 或 登录 后发表评论