kyy
2025-09-04 2e37035392c187b26a09a2c2edcc6133e96532cc
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()
                : Convert.ToInt32(depots.Id),
            // DepotId = string.IsNullOrEmpty(depots.Id)
            //     ? DateTimeOffset.UtcNow.ToUnixTimeSeconds()
            //     : Convert.ToInt32(depots.Id),
            IsFkc = depots.FAllowMinusQty,
            CreateBy = depots.FPrincipal,
            Depottype = depots.FStockProperty,