From 14079a3004cf9df7b9bd77aff48aea866b84e169 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 13 5月 2025 18:13:59 +0800
Subject: [PATCH] //这里必须转换,否则如果字段可为NULL,就会报错
---
HIAWms/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/CMSPluginDbContextModelSnapshot.cs | 41 +++++++++++++++++++++++++++--------------
1 files changed, 27 insertions(+), 14 deletions(-)
diff --git a/HIAWms/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/CMSPluginDbContextModelSnapshot.cs b/HIAWms/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/CMSPluginDbContextModelSnapshot.cs
index 4def327..16a5127 100644
--- a/HIAWms/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/CMSPluginDbContextModelSnapshot.cs
+++ b/HIAWms/server/src/CMS.Plugin.HIAWms.MySQL/Migrations/CMSPluginDbContextModelSnapshot.cs
@@ -139,7 +139,7 @@
b.HasComment("搴撳尯琛�");
});
- modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsContainerPlaces.WmsContainerPlace", b =>
+ modelBuilder.Entity("CMS.Plugin.HIAWms.Domain.WmsContainerPlace.WmsContainerPlace", b =>
{
b.Property<string>("PlaceNo")
.HasMaxLength(50)
@@ -623,8 +623,9 @@
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
- b.Property<int?>("MaterialBatch")
- .HasColumnType("int")
+ b.Property<string>("MaterialBatch")
+ .HasMaxLength(50)
+ .HasColumnType("varchar(50)")
.HasComment("鐗╂枡鎵规");
b.Property<string>("MaterialId")
@@ -742,6 +743,11 @@
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
+ b.Property<string>("MaterialBatch")
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)")
+ .HasComment("鐗╂枡鎵规");
+
b.Property<string>("MaterialId")
.IsRequired()
.HasMaxLength(50)
@@ -769,7 +775,6 @@
.HasComment("鎿嶄綔鏃堕棿");
b.Property<string>("OrderNo")
- .IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasComment("鍗曟嵁缂栧彿");
@@ -1106,12 +1111,6 @@
.HasColumnType("decimal(18,2)")
.HasComment("闀垮害锛堝崟浣嶏細m锛�");
- b.Property<string>("MaterialCode")
- .IsRequired()
- .HasMaxLength(64)
- .HasColumnType("varchar(64)")
- .HasComment("鐗╂枡缂栫爜锛堝敮涓�鏍囪瘑锛�");
-
b.Property<string>("MaterialModel")
.HasMaxLength(128)
.HasColumnType("varchar(128)")
@@ -1122,6 +1121,12 @@
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("鐗╂枡鍚嶇О");
+
+ b.Property<string>("MaterialNo")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)")
+ .HasComment("鐗╂枡缂栫爜锛堝敮涓�鏍囪瘑锛�");
b.Property<string>("MaterialQuality")
.HasMaxLength(64)
@@ -1182,10 +1187,10 @@
b.HasKey("Id");
- b.HasIndex("MaterialCode")
- .IsUnique();
-
b.HasIndex("MaterialName");
+
+ b.HasIndex("MaterialNo")
+ .IsUnique();
b.HasIndex("MaterialType");
@@ -1436,8 +1441,10 @@
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
- b.Property<bool?>("IsDisabled")
+ b.Property<bool>("IsDisabled")
+ .ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
+ .HasDefaultValue(false)
.HasComment("鏄惁绂佺敤");
b.Property<int>("Islock")
@@ -1701,6 +1708,12 @@
.HasColumnType("varchar(200)")
.HasComment("鍙彉鍙橀噺3");
+ b.Property<int>("PlcTaskId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasDefaultValue(0)
+ .HasComment("浠诲姟鐘舵��");
+
b.Property<int?>("SonTaskType")
.HasColumnType("int")
.HasComment("瀛愪换鍔$被鍨�");
--
Gitblit v1.9.3