public HttpResponseMessage GetBrokerWithdrawDetailListByUserId(string userId = null, int page = 1, int pageSize = 10) { if (string.IsNullOrEmpty(userId)) { return(PageHelper.toJson(PageHelper.ReturnValue(false, "数据错误!"))); } var brokerwithdrawdetailcon = new BrokerWithdrawDetailSearchCondition { Brokers = _brokerService.GetBrokerById(Convert.ToInt32(userId)), Page = Convert.ToInt32(page), PageCount = pageSize }; var PointDetailList = _brokerwithdrawdetailService.GetBrokerWithdrawDetailsByCondition(brokerwithdrawdetailcon).Select(p => new { Id = p.Id, bankname = p.BankCard.Bank.Codeid, banknumber = p.BankCard.Num, Withdrawnum = p.Withdrawnum, Withdrawtime = p.Withdrawtime }).ToList().Select(p => new { Id = p.Id, bankname = p.bankname, banknumber = p.banknumber, Withdrawnum = p.Withdrawnum, Withdrawtime = p.Withdrawtime.ToString("yyyy-MM-dd") }); var PointDetailListCount = _brokerwithdrawdetailService.GetBrokerWithdrawDetailCount(brokerwithdrawdetailcon); return(PageHelper.toJson(new { List = PointDetailList, Condition = brokerwithdrawdetailcon, totalCount = PointDetailListCount })); }