/// <summary> /// 查询列表 /// </summary> /// <param name="page"></param> /// <param name="limit"></param> /// <param name="condition"></param> /// <param name="tradeType"></param> /// <param name="type"></param> /// <param name="beginTime"></param> /// <param name="endTime"></param> /// <returns></returns> public JsonResult GetPayLimit(int?page, string limit, string condition, int?tradeType, int?type, string beginTime, string endTime) { int count = 0; if (condition != null && condition.Contains("[add]")) { condition = condition.Replace("[add]", "+"); } if (condition != null && condition.Contains("[reduce]")) { condition = condition.Replace("[reduce]", "-"); } IList <PaysDetail> list = PayService.GetPayPageLimit(page.Value, limit, condition, tradeType.HasValue ? tradeType.Value : 0, type.HasValue ? type.Value : 0, beginTime, endTime); JsonArrayResult <PaysDetail> jsonArrayResult = new JsonArrayResult <PaysDetail>(0, list); if (condition.IsEmpty() && beginTime.IsEmpty() && endTime.IsEmpty() && (type == 0)) { count = PayService.GetCount(); } else { count = PayService.GetPaysPageLimitCount(condition, tradeType.HasValue ? tradeType.Value : 0, type.HasValue ? type.Value : 0, beginTime, endTime); } jsonArrayResult.count = count; return(Json(jsonArrayResult)); }