From eb744ecfecc0f1b6d9c0999c65bc740d93e30eda Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期三, 22 一月 2025 13:38:52 +0800 Subject: [PATCH] 新增接口 --- StandardPda/MES.Service/service/BasicData/MesRohInManager.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/StandardPda/MES.Service/service/BasicData/MesRohInManager.cs b/StandardPda/MES.Service/service/BasicData/MesRohInManager.cs index dfe434e..8e84976 100644 --- a/StandardPda/MES.Service/service/BasicData/MesRohInManager.cs +++ b/StandardPda/MES.Service/service/BasicData/MesRohInManager.cs @@ -2,7 +2,6 @@ using MES.Service.Dto.webApi; using MES.Service.Modes; using SqlSugar; -using System.Security.AccessControl; namespace MES.Service.service.BasicData; @@ -15,7 +14,8 @@ { var rohInErpRohIn = rohIn.ErpRohIn; var mesRohIn = GetMesRohIn(rohInErpRohIn); - var mesRohInDatas = GetMesRohInDatas(rohIn.ErpRohinDatas, rohInErpRohIn.Type); + var mesRohInDatas = + GetMesRohInDatas(rohIn.ErpRohinDatas, rohInErpRohIn.Type); return UseTransaction(db => { @@ -31,7 +31,7 @@ }; }) > 0; } - + // 鏇存柊鏁版嵁鐨勬柟娉� private bool UpdateData(SqlSugarScope db, MesRohIn mesRohIn, List<MesRohInData> mesRohInDatas) @@ -68,7 +68,7 @@ //var orUpdate = base.Insert(mesRohIn); //var baOrUpdate = rohInDataManager.InsertRange(mesRohInDatas); var orUpdate = db.Insertable(mesRohIn) - .IgnoreColumns(true).ExecuteCommand() > 0; + .IgnoreColumns(true).ExecuteCommand() > 0; var baOrUpdate = db.Insertable(mesRohInDatas).PageSize(1) @@ -102,7 +102,8 @@ mesRohIn.DocumentType = rohIn.FBillTypeID; mesRohIn.BusinessType = rohIn.FBusinessType; if (rohIn.FDate != null) - mesRohIn.PurchaseDate = DateTime.ParseExact(rohIn.FDate,"yyyy-MM-dd HH:mm:ss", null); + mesRohIn.PurchaseDate = DateTime.ParseExact(rohIn.FDate, + "yyyy-MM-dd HH:mm:ss", null); mesRohIn.Supplier = rohIn.FSupplierId; mesRohIn.CloseStatus = rohIn.FCloseStatus; mesRohIn.PurchaseOrg = rohIn.FPurchaseOrgId; @@ -229,7 +230,6 @@ FCGDDSctzda = s.F_CGDD_SCTZDA, FCGDDXHA = s.F_CGDD_XHA, FXifgTextApv = s.F_XIFG_Text_apv - }; var single = rohInDataManager.GetSingle(it => -- Gitblit v1.9.3