def METHOD_NAME(self, flat=False):
    """
     :return: 返回授权的所有账号对象 Account
    """
    asset_ids = self.get_all_assets(flat=True)
    q = Q(asset_id__in=asset_ids)
    if AliasAccount.ALL not in self.accounts:
        q &= Q(username__in=self.accounts)
    accounts = Account.objects.filter(q).order_by('asset__name', 'name', 'username')
    if not flat:
        return accounts
    return accounts.values_list('id', flat=True)