Ejemplo n.º 1
0
        /// <summary>
        /// 分页获取商品销售记录信息
        /// </summary>
        /// <param name="httpContext"></param>
        /// <param name="request"></param>
        /// <returns></returns>
        public async Task <ResponsePagingBase> ProcessAction(HttpContext httpContext, ReceiptInLogPageRequest request)
        {
            if (!HandleRequest(httpContext, request))
            {
                return(ResponsePagingBase.Success(new List <ReceiptInLogView>(), 0));
            }
            var result = await _goodsBll.GetReceiptInLogPage(request);

            result.Item1.ToList().ForEach(p => p.CreateTime = p.InDate.ToDateTimeFromTimeStamp());
            return(ResponsePagingBase.Success(result.Item1, result.Item2));
        }