From 3b3e5ca0fc0addf20cb5f7308b7636562746fe4c Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期一, 01 九月 2025 14:53:52 +0800
Subject: [PATCH] 基础资料更新

---
 MES.Service/service/BasicData/MesDepotsManager.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/MES.Service/service/BasicData/MesDepotsManager.cs b/MES.Service/service/BasicData/MesDepotsManager.cs
index 1c5745a..e18f558 100644
--- a/MES.Service/service/BasicData/MesDepotsManager.cs
+++ b/MES.Service/service/BasicData/MesDepotsManager.cs
@@ -95,7 +95,7 @@
             DepotName = depots.FName,
             DepotId = string.IsNullOrEmpty(depots.Id)
                 ? DateTimeOffset.UtcNow.ToUnixTimeSeconds()
-                : long.Parse(depots.Id),
+                : 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