From b884e533c4d906d3e004ea51750591f04863f881 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期五, 22 八月 2025 19:37:06 +0800 Subject: [PATCH] 基础资料的更新 --- MES.Service/service/BasicData/MesDepotsManager.cs | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/MES.Service/service/BasicData/MesDepotsManager.cs b/MES.Service/service/BasicData/MesDepotsManager.cs index b6088d9..d89e904 100644 --- a/MES.Service/service/BasicData/MesDepotsManager.cs +++ b/MES.Service/service/BasicData/MesDepotsManager.cs @@ -42,7 +42,7 @@ } // 鏇存柊浠撳簱鐘舵�佺殑鏂规硶 - private bool UpdateDepotStatus(SqlSugarScope db, decimal depotId, + private bool UpdateDepotStatus(SqlSugarScope db, long depotId, string status) { var result = db.Updateable<MesDepots>() @@ -91,27 +91,28 @@ { return new MesDepots { - Guid = depots.Id, DepotCode = depots.FNumber, DepotName = depots.FName, - DepotId = Convert.ToDecimal(depots.Id), + DepotId = string.IsNullOrEmpty(depots.Id) + ? DateTimeOffset.UtcNow.ToUnixTimeSeconds() + : long.Parse(depots.Id), IsFkc = depots.FAllowMinusQty, CreateBy = depots.FPrincipal, Depottype = depots.FStockProperty, IsNg = depots.FForbidStatus, Zuid = depots.FGroup, - FSubsidiary = depots.FUseOrgId, - Fumbrella = depots.FCreateOrgId, - CreateDate = DateTime.Now, - LastupdateDate = DateTime.Now, - SupplierId = depots.FSUPPLIERID, - Company = "1000", - Factory = "1000", - FCustomerId = depots.FCustomerId, - FDocumentStatus = depots.FDocumentStatus, - FStockStatusType = depots.FStockStatusType - + 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"), + Company = "1000", + Factory = "1000" }; } -- Gitblit v1.9.3