From 2e37035392c187b26a09a2c2edcc6133e96532cc Mon Sep 17 00:00:00 2001 From: kyy <3283105747@qq.com> Date: 星期四, 04 九月 2025 15:57:15 +0800 Subject: [PATCH] 1、收料通知单接口 2、采购订单接口加委外订单分录内码 --- MES.Service/service/BasicData/MesDepotsManager.cs | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/MES.Service/service/BasicData/MesDepotsManager.cs b/MES.Service/service/BasicData/MesDepotsManager.cs index 1c5745a..eb746d6 100644 --- a/MES.Service/service/BasicData/MesDepotsManager.cs +++ b/MES.Service/service/BasicData/MesDepotsManager.cs @@ -42,7 +42,7 @@ } // 鏇存柊浠撳簱鐘舵�佺殑鏂规硶 - private bool UpdateDepotStatus(SqlSugarScope db, long depotId, + private bool UpdateDepotStatus(SqlSugarScope db, decimal depotId, string status) { var result = db.Updateable<MesDepots>() @@ -93,9 +93,9 @@ { DepotCode = depots.FNumber, DepotName = depots.FName, - DepotId = string.IsNullOrEmpty(depots.Id) - ? DateTimeOffset.UtcNow.ToUnixTimeSeconds() - : long.Parse(depots.Id), + // DepotId = string.IsNullOrEmpty(depots.Id) + // ? DateTimeOffset.UtcNow.ToUnixTimeSeconds() + // : Convert.ToInt32(depots.Id), IsFkc = depots.FAllowMinusQty, CreateBy = depots.FPrincipal, Depottype = depots.FStockProperty, @@ -103,14 +103,14 @@ Zuid = depots.FGroup, DocumentStatus = depots.FDocumentStatus, - UseOrg = string.IsNullOrEmpty(depots.FUseOrgId) - ? 1 - : long.Parse(depots.FUseOrgId), - CreateOrg = string.IsNullOrEmpty(depots.FCreateOrgId) - ? 1 - : long.Parse(depots.FCreateOrgId), - CreateDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), - LastupdateDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), + FSubsidiary = string.IsNullOrEmpty(depots.FUseOrgId) + ? "1" + : depots.FUseOrgId, + Fumbrella = string.IsNullOrEmpty(depots.FCreateOrgId) + ? "1" + : depots.FCreateOrgId, + CreateDate = DateTime.Now, + LastupdateDate = DateTime.Now, Company = "1000", Factory = "1000" }; -- Gitblit v1.9.3