public object getMemberExpenseDetail(Dictionary <string, object> dicParas) { try { string errMsg = string.Empty; string mobileToken = dicParas.ContainsKey("mobileToken") ? dicParas["mobileToken"].ToString() : string.Empty; string icCardId = dicParas.ContainsKey("icCardId") ? dicParas["icCardId"].ToString() : string.Empty; string flowType = dicParas.ContainsKey("flowType") ? dicParas["flowType"].ToString() : string.Empty; string sDate = dicParas.ContainsKey("sDate") ? dicParas["sDate"].ToString() : string.Empty; string eDate = dicParas.ContainsKey("eDate") ? dicParas["eDate"].ToString() : string.Empty; string strPageIndex = dicParas.ContainsKey("pageIndex") ? dicParas["pageIndex"].ToString() : string.Empty; string strpageSize = dicParas.ContainsKey("pageSize") ? dicParas["pageSize"].ToString() : string.Empty; int pageIndex = 1, pageSize = 10; if (!string.IsNullOrWhiteSpace(strPageIndex) && strPageIndex.IsInt()) { pageIndex = Convert.ToInt32(strPageIndex); } if (!string.IsNullOrWhiteSpace(strpageSize) && strpageSize.IsInt()) { pageSize = Convert.ToInt32(strpageSize); } if (mobileToken == "") { return(ResponseModelFactory.CreateModel(isSignKeyReturn, Return_Code.T, "", Result_Code.F, "手机令牌不能为空")); } Base_MerchInfo merch = MerchBusiness.GetMerchModel(mobileToken); if (merch.IsNull()) { return(ResponseModelFactory.CreateModel(isSignKeyReturn, Return_Code.T, "", Result_Code.F, "用户token无效")); } t_member member = MemberBusiness.GetMerchModel(icCardId); if (member.IsNull()) { return(ResponseModelFactory.CreateModel(isSignKeyReturn, Return_Code.T, "", Result_Code.F, "会员卡号错误")); } DataTable table = AccountBusiness.GetMemberExpenseDetail(merch.ID, icCardId, flowType, sDate, eDate, pageIndex, pageSize); if (table.Rows.Count == 0) { return(ResponseModelFactory.CreateModel(isSignKeyReturn, Return_Code.T, "", Result_Code.F, "无数据")); } var list = Utils.GetModelList <MemberExpenseDetailModel>(table).ToList(); return(ResponseModelFactory <List <MemberExpenseDetailModel> > .CreateModel(isSignKeyReturn, list)); } catch (Exception e) { throw e; } }