提供存货出入库频次接口
This commit is contained in:
@@ -24,4 +24,29 @@ namespace NX.ERP.Model.Response.Store
|
|||||||
public decimal ArrivalQty { get => arrivalQty; set => arrivalQty = value; }
|
public decimal ArrivalQty { get => arrivalQty; set => arrivalQty = value; }
|
||||||
public decimal PoQty { get => poQty; set => poQty = 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; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 });
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user