where(['sjId'=>$sjId])->asArray()->all(); return $data; } /** * 获取学员相关的分类 * @author ssh * @time 2019.3.17 */ public static function getStudent($sjId) { $data = self::showCategory($sjId); if(!empty($data)){ foreach($data as $key => $info){ if($info['type'] != 0){ unset($data[$key]); } } } return $data; } }