From 5c5a26ca4f99953d06e75010eed5b0b59dff3b3f Mon Sep 17 00:00:00 2001
From: song zhou <1759742460@qq.com>
Date: 周日, 18 5月 2025 19:44:26 +0800
Subject: [PATCH] wcs交互

---
 HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsContainer.cs |   69 ++++++++++++++++++++++++++++++++--
 1 files changed, 64 insertions(+), 5 deletions(-)

diff --git a/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsContainer.cs b/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsContainer.cs
index 914c0a2..289cef0 100644
--- a/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsContainer.cs
+++ b/HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsContainer.cs
@@ -38,19 +38,78 @@
 
         builder.Entity<WmsContainer>(b =>
         {
-            //Configure table & schema name
-            b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsContainers").ToLower(), CMSPluginDbProperties.DbSchema).HasComment("WmsContainer");
+            b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsContainers").ToLower(), CMSPluginDbProperties.DbSchema)
+            .HasComment("鎵樼洏淇℃伅琛�");
 
             b.ConfigureByConvention();
 
             //Properties
-            b.Property(x => x.Code).HasMaxLength(WmsContainerConsts.MaxCodeLength).IsRequired().HasComment("缂栫爜");
-            b.Property(x => x.Name).HasMaxLength(WmsContainerConsts.MaxNameLength).IsRequired().HasComment("鍚嶇О");
+            b.Property(x => x.ContainerNo)
+                .HasMaxLength(50)
+                .IsRequired()
+                .HasComment("鎵樼洏缂栧彿");
+
+            b.Property(x => x.ContainerType)
+                .IsRequired()
+                .HasComment("鎵樼洏绫诲瀷");
+
+            b.Property(x => x.ContainerStatus)
+                .IsRequired()
+                .HasComment("鎵樼洏鐘舵��");
+
+            b.Property(x => x.SpecLength)
+                .HasPrecision(18, 2)
+                .HasComment("闀垮害");
+
+            b.Property(x => x.SpecWidth)
+                .HasPrecision(18, 2)
+                .HasComment("瀹藉害");
+
+            b.Property(x => x.SpecHeight)
+                .HasPrecision(18, 2)
+                .HasComment("楂樺害");
+
+            b.Property(x => x.LimitLength)
+                .HasPrecision(18, 2)
+                .HasComment("闄愰暱");
+
+            b.Property(x => x.LimitWidth)
+                .HasPrecision(18, 2)
+                .HasComment("闄愬");
+
+            b.Property(x => x.LimitHeight)
+                .HasPrecision(18, 2)
+                .HasComment("闄愰珮");
+
+            b.Property(x => x.MaxWeight)
+                .HasPrecision(18, 2)
+                .HasComment("杞介噸涓婇檺");
+
+            b.Property(x => x.ExceptionNumber)
+                .HasComment("寮傚父鏁伴噺");
+
+            b.Property(x => x.MaterialNumber)
+                .HasComment("鐗╂枡鏁伴噺");
+
+            b.Property(x => x.RedundantField1)
+                .HasMaxLength(200)
+                .HasComment("鍐椾綑瀛楁1 - 棰勭暀鎵╁睍鐢ㄩ��");
+
+            b.Property(x => x.RedundantField2)
+                .HasMaxLength(200)
+                .HasComment("鍐椾綑瀛楁2 - 棰勭暀鎵╁睍鐢ㄩ��");
+
+            b.Property(x => x.RedundantField3)
+                .HasMaxLength(200)
+                .HasComment("鍐椾綑瀛楁3 - 棰勭暀鎵╁睍鐢ㄩ��");
+
             b.Property(x => x.Sort).HasComment("鎺掑簭");
             b.Property(x => x.IsDisabled).IsRequired(false).HasComment("鏄惁绂佺敤");
             b.Property(x => x.Remark).HasMaxLength(WmsContainerConsts.MaxRemarkLength).IsRequired(false).HasComment("澶囨敞");
 
-            b.HasIndex(u => u.Name);
+            b.HasIndex(u => u.ContainerNo).IsUnique();
+            b.HasIndex(u => u.ContainerType);
+            b.HasIndex(u => u.ContainerStatus);
 
             b.ApplyObjectExtensionMappings();
         });

--
Gitblit v1.9.3