提供存货出入库频次接口

This commit is contained in:
杰 朱
2021-11-04 09:29:46 +08:00
parent 5e4c353981
commit 7e893db769
3 changed files with 47 additions and 0 deletions

View File

@@ -24,4 +24,29 @@ namespace NX.ERP.Model.Response.Store
public decimal ArrivalQty { get => arrivalQty; set => arrivalQty = value; }
public decimal PoQty { get => poQty; set => poQty = value; }
}
public class Stockinouttimes
{
public string cInvCode { get; set; }
public string cInvName { get; set; }
public string cInvStd { get; set; }
public string stockout { get; set; }
public string stockin { get; set; }
public decimal iQuantity { get; set; }
}
}

View File

@@ -142,5 +142,19 @@ left join
}
public IEnumerable<Model.Response.Store.Stockinouttimes> GetStockinouttimes(string starttime = "19991231" , string endtime="20991231", string invcode = null )
{
using (var conn = U8LoginContext.Instance.Connection)
{
string sql = " SP_CurrentStock_crpd20211011 @starttime,@endtime ,@invcode ";
return conn.Query<Model.Response.Store.Stockinouttimes>(sql,new { starttime, endtime, invcode });
}
}
}
}

View File

@@ -48,5 +48,13 @@ namespace NX.ERP.WebAPi.Controllers.Store
}
[HttpPost]
[Route("api/Stock/GetStockinouttimes")]
public IEnumerable<Model.Response.Store.Stockinouttimes> GetStockinouttimes(string starttime = "19991231", string endtime = "20991231", string invcode = null)
{
return new U8.Store.StockDAL().GetStockinouttimes(starttime, endtime, invcode);
}
}
}