public IHttpActionResult GetRmaByReturnGoodPay([FromUri] ReturnGoodsPayRequest request, [UserId] int uid) { return(DoFunction(() => { _saleRmaService.UserId = uid; return _saleRmaService.GetByReturnGoodPay(request); }, "查询退货单信息失败")); }
public void TestGetByReturnGoodPay() { var dto = new ReturnGoodsPayRequest(); dto.StartDate = new DateTime(2014, 4, 1); dto.EndDate = DateTime.Now.Date; dto.pageIndex = 1; dto.pageSize = 100; Service.UserId = 1; var lst = Service.GetByReturnGoodPay(dto); Assert.IsNotNull(lst); Assert.AreNotEqual(0, lst.TotalCount); }
public PageResult <SaleRmaDto> GetByReturnGoodPay(ReturnGoodsPayRequest dto) { dto.StartDate = dto.StartDate.Date; dto.EndDate = dto.EndDate.Date.AddDays(1); /* * * 财务退款确认的查询状态条件,就要改为退货状态为已生效,且退货单状态为物流入库的 * zxy 物流入库+通知单品 2014-5-10 */ ISaleRMARepository rep = _repository as ISaleRMARepository; var lst = rep.GetByReturnGoodPay(dto.OrderNo, "", dto.PayType, "", dto.StartDate, dto.EndDate, null, dto.pageIndex, dto.pageSize); return(lst); }