leftJoin('archives_category ac', 'ac.model_id = am.id') ->field('ac.id,ac.title,ac.model_id, ac.sort,am.name as model_name') ->order('ac.sort', 'desc') ->order('ac.id', 'asc') ->whereIn('am.name', self::models()) ->select(); } /** * 关于我们栏目 * * @return mixed */ public static function about() { return self::alias('am') ->leftJoin('archives_category ac', 'ac.model_id = am.id') ->field('ac.id,ac.title,ac.model_id, ac.sort,am.name as model_name') ->order('ac.sort', 'desc') ->order('ac.id', 'asc') ->whereIn('ac.id', ArchivesCategory::aboutCategoryId()) ->select(); } }