修改接口

This commit is contained in:
gongxh
2021-04-30 11:51:19 +08:00
parent f4044f46be
commit ad23ae5dcb
5 changed files with 109 additions and 100 deletions

View File

@@ -12,7 +12,7 @@ namespace NX.ERP.WebAPi.Controllers
{
[HttpPost]
[Route("api/Pmc/Inventoryall")]
public IEnumerable<NX.ERP.Model.PmcInventoryallRes> Post1(NX.ERP.Model.Request.Inventoryall info)
public IEnumerable<NX.ERP.Model.PmcInventoryallRes> Inventoryall(NX.ERP.Model.Request.Inventoryall info)
{
var dal = new NX.ERP.U8.Pmc.PmcQuery();
return dal.GetPmcInventoryallRes(info);
@@ -21,26 +21,26 @@ namespace NX.ERP.WebAPi.Controllers
[HttpPost]
[Route("api/Pmc/Inventorymom")]
public IEnumerable<object> Post2([FromBody] List<string> info1)
public IEnumerable<object> Inventorymom([FromBody] List<string> invCodes)
{
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
return PmcQuery.Post2(info1);
return PmcQuery.Inventorymom(invCodes);
}
[HttpPost]
[Route("api/Pmc/Inventorymonth")]
public IEnumerable<object> Post3(NX.ERP.Model.Request.Inventoryall info)
public IEnumerable<object> Inventorymonth(NX.ERP.Model.Request.Inventoryall info)
{
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
return PmcQuery.Post3(info);
return PmcQuery.Inventorymonth(info);
}
[HttpPost]
[Route("api/Pmc/Inventorysocode")]
public IEnumerable<object> Post4(NX.ERP.Model.Request.Inventoryall info)
public IEnumerable<object> Inventorysocode(NX.ERP.Model.Request.Inventoryall info)
{
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
return PmcQuery.Post4(info);
return PmcQuery.Inventorysocode(info);
}