private Account GetAccount(OutsideCardInput card)
        {
            var account = _accountRepository.GetAccountByCard(card.CardType, card.CardNo);

            if (account == null)
            {
                throw new CustomHttpException($"卡类型【{card.CardType}】+卡号【{card.CardNo}】找不到对应的账户");
            }
            return(account);
        }
        public OutsideAccountDto GetAccountByCard(OutsideCardInput input)
        {
            var account = GetAccount(input);

            return(account.MapTo <OutsideAccountDto>());
        }