select()->toArray(); } public static function getInfoById($id) { return LaModel::findOrEmpty($id)->toArray(); } public static function getApplyCountByIdCard($idCard) { $where = []; $where[] = ["idCard", "=", $idCard]; $where[] = ["checkState", "<>", LaState::LA_NOTPASS]; $list = LaModel::where($where)->distinct(true)->field("substr(year,1,4)")->select(); return count($list); } }