修正API

This commit is contained in:
gongxh
2021-05-21 13:06:45 +08:00
parent edae082c51
commit 4abb93fd80
23 changed files with 201 additions and 28 deletions

View File

@@ -8,6 +8,7 @@ namespace NX.ERP.WebAPi.Controllers.MOM
{
public class BomController : ApiController
{
[Obsolete]
[Route("api/Bom/List")]
[HttpGet]
@@ -15,5 +16,16 @@ namespace NX.ERP.WebAPi.Controllers.MOM
{
return new NX.ERP.U8.Mom.BomDAL().GetList();
}
[Route("api/Bom/Query")]
[HttpPost]
public IEnumerable<Model.Response.MOM.Bom> GetList(NX.ERP.Model.Request.Bom bom)
{
return new NX.ERP.U8.Mom.BomDAL().GetList(bom);
}
}
}