From 956e149c2d179820954ceff226505d146b904bc3 Mon Sep 17 00:00:00 2001 From: gongxh Date: Fri, 21 May 2021 09:50:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.U8/Pmc/PmcQuery.cs | 2 +- NX.ERP.U8/Store/MaterielStoreOutDAL.cs | 5 ----- NX.ERP.WebAPi/App_Start/SwaggerConfig.cs | 12 +++++++++--- NX.ERP.WebAPi/Controllers/Store/StockController.cs | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/NX.ERP.U8/Pmc/PmcQuery.cs b/NX.ERP.U8/Pmc/PmcQuery.cs index a1a78f8..607ccea 100644 --- a/NX.ERP.U8/Pmc/PmcQuery.cs +++ b/NX.ERP.U8/Pmc/PmcQuery.cs @@ -91,7 +91,7 @@ namespace NX.ERP.U8.Pmc List where = new List(); - ///处理- + //处理- if (info.InvCodes != null) { where.Add(" c.cinvcode in @cinvcode"); diff --git a/NX.ERP.U8/Store/MaterielStoreOutDAL.cs b/NX.ERP.U8/Store/MaterielStoreOutDAL.cs index 994faca..0356525 100644 --- a/NX.ERP.U8/Store/MaterielStoreOutDAL.cs +++ b/NX.ERP.U8/Store/MaterielStoreOutDAL.cs @@ -62,17 +62,12 @@ namespace NX.ERP.U8.Store DeptName = materialAppDetail.DeptName; DeptCode = materialAppDetail.DeptCode; moCode = materialAppDetail.MoCode; - } else if (lastProductNo != "" && lastProductNo != materialAppDetail.ProductNo) { lastProductNo = ""; moqty = 0; } - - - - bodyXml = domBody.createElement("z:row"); var metail = new NX.ERP.U8.MaterialDAL().GetInvPrice(detail.InvCode, 1, storeOut.Whcode, out var _cost); bodyXml.setAttribute("iunitcost", _cost); diff --git a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs index 85877f5..68ef586 100644 --- a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs +++ b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs @@ -7,8 +7,14 @@ using Swashbuckle.Application; namespace NX.ERP.WebAPi { + /// + /// + /// public class SwaggerConfig { + /// + /// + /// public static void Register() { var thisAssembly = typeof(SwaggerConfig).Assembly; @@ -36,7 +42,7 @@ namespace NX.ERP.WebAPi // If you want the output Swagger docs to be indented properly, enable the "PrettyPrint" option. // - //c.PrettyPrint(); + c.PrettyPrint(); // If your API has multiple versions, use "MultipleApiVersions" instead of "SingleApiVersion". // In this case, you must provide a lambda that tells Swashbuckle which actions should be @@ -101,9 +107,9 @@ namespace NX.ERP.WebAPi // those comments into the generated docs and UI. You can enable this by providing the path to one or // more Xml comment files. // - c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory)); + // c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory)); - c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.Model.xml", System.AppDomain.CurrentDomain.BaseDirectory)); + // c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.Model.xml", System.AppDomain.CurrentDomain.BaseDirectory)); // Swashbuckle makes a best attempt at generating Swagger compliant JSON schemas for the various types // exposed in your API. However, there may be occasions when more control of the output is needed. // This is supported through the "MapType" and "SchemaFilter" options: diff --git a/NX.ERP.WebAPi/Controllers/Store/StockController.cs b/NX.ERP.WebAPi/Controllers/Store/StockController.cs index ca3ab65..7950755 100644 --- a/NX.ERP.WebAPi/Controllers/Store/StockController.cs +++ b/NX.ERP.WebAPi/Controllers/Store/StockController.cs @@ -16,7 +16,7 @@ namespace NX.ERP.WebAPi.Controllers.Store /// /// /// - [HttpPost] + [HttpGet] [Route("api/Stock/GetStock")] public IEnumerable GetList([FromUri]string Code) {