|
...
|
...
|
@@ -31,7 +31,8 @@ class SxBasement extends Frontend |
|
|
|
$stationList = Station::alias('a')
|
|
|
|
->field('a.id,a.station_name,count(sa.id) as appoint_count')
|
|
|
|
->join('fa_station_appointment sa','a.id = sa.station_id','LEFT')
|
|
|
|
->where(['a.school_id'=>$this->auth->school_id])
|
|
|
|
// ->where(['a.school_id'=>$this->auth->school_id])
|
|
|
|
->where(['a.school_id'=>$this->school_id])
|
|
|
|
->group('a.id')
|
|
|
|
->select();
|
|
|
|
//入驻公司
|
|
...
|
...
|
@@ -67,7 +68,8 @@ class SxBasement extends Frontend |
|
|
|
{
|
|
|
|
$userInfo = $this->auth->getUser();
|
|
|
|
if(!$userInfo) {
|
|
|
|
$this->success('请登入','/index/student_login/index');
|
|
|
|
$this->success('请登录后再操作','/index/student_login/index');
|
|
|
|
// $this->success('请登入','/index/student_login/index');
|
|
|
|
}
|
|
|
|
$params = $this->request->post();
|
|
|
|
if(!isset($params['station_id']) || empty($params['station_id'])){
|
...
|
...
|
|