schangxiang@126.com
2025-05-16 4575f4ca814675c535b18d46b90ec97fd77ae2a2
HIAWms/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsMaterial.cs
@@ -63,8 +63,13 @@
            b.Property(x => x.PurchaseType)
                .HasComment("采购类型(枚举值)");
            b.Property(x => x.MaterialType)
                .HasComment("物料类型(枚举值)");
            b.Property(x => x.MaterialTypeCode)
                .HasMaxLength(20)
                .HasComment("物料类型编码");
            b.Property(x => x.MaterialTypeDesc)
                .HasMaxLength(20)
                .HasComment("物料类型");
            b.Property(x => x.PrimaryUnit)
                .HasMaxLength(20)
@@ -140,7 +145,7 @@
            b.HasIndex(x => x.MaterialNo).IsUnique(); // 物料编码唯一索引
            b.HasIndex(x => x.MaterialName);           // 物料名称普通索引
            b.HasIndex(x => x.PurchaseType);           // 采购类型索引(如需查询过滤)
            b.HasIndex(x => x.MaterialType);           // 物料类型索引(如需查询过滤)
            b.HasIndex(x => x.MaterialTypeCode);           // 物料类型索引(如需查询过滤)
            b.ApplyObjectExtensionMappings();
        });