diff --git a/API/TaskManager.Contracts/Dtos/Dtos.cs b/API/TaskManager.Contracts/Dtos/Dtos.cs
index a99f0d6..f6dcc40 100644
--- a/API/TaskManager.Contracts/Dtos/Dtos.cs
+++ b/API/TaskManager.Contracts/Dtos/Dtos.cs
@@ -170,37 +170,37 @@ namespace TaskManager.Contracts.Dtos
/// 数量1
///
[JsonPropertyName("quantity1")]
- public int Quantity1 { get; set; } = 1;
+ public decimal? Quantity1 { get; set; } = 1;
///
/// 数量2
///
[JsonPropertyName("quantity2")]
- public int Quantity2 { get; set; } = 1;
+ public decimal? Quantity2 { get; set; } = 1;
///
/// 数量3
///
[JsonPropertyName("quantity3")]
- public int Quantity3 { get; set; } = 1;
+ public decimal? Quantity3 { get; set; } = 1;
///
/// 数量4
///
[JsonPropertyName("quantity4")]
- public int Quantity4 { get; set; } = 1;
+ public decimal? Quantity4 { get; set; } = 1;
///
/// 数量5
///
[JsonPropertyName("quantity5")]
- public int Quantity5 { get; set; } = 1;
+ public decimal? Quantity5 { get; set; } = 1;
///
/// 数量6
///
[JsonPropertyName("quantity6")]
- public int Quantity6 { get; set; } = 1;
+ public decimal? Quantity6 { get; set; } = 1;
///
/// 工厂
@@ -286,18 +286,18 @@ namespace TaskManager.Contracts.Dtos
public string PlantId { get; set; }
public string PlantName { get; set; }
public string StartMonth { get; set; }
- public int QuantityDemand1 { get; set; }
- public int QuantityDemand2 { get; set; }
- public int QuantityDemand3 { get; set; }
- public int QuantityDemand4 { get; set; }
- public int QuantityDemand5 { get; set; }
- public int QuantityDemand6 { get; set; }
- public int QuantityDemand7 { get; set; }
- public int QuantityDemand8 { get; set; }
- public int QuantityDemand9 { get; set; }
- public int QuantityDemand10 { get; set; }
- public int QuantityDemand11 { get; set; }
- public int QuantityDemand12 { get; set; }
+ public decimal? QuantityDemand1 { get; set; }
+ public decimal? QuantityDemand2 { get; set; }
+ public decimal? QuantityDemand3 { get; set; }
+ public decimal? QuantityDemand4 { get; set; }
+ public decimal? QuantityDemand5 { get; set; }
+ public decimal? QuantityDemand6 { get; set; }
+ public decimal? QuantityDemand7 { get; set; }
+ public decimal? QuantityDemand8 { get; set; }
+ public decimal? QuantityDemand9 { get; set; }
+ public decimal? QuantityDemand10 { get; set; }
+ public decimal? QuantityDemand11 { get; set; }
+ public decimal? QuantityDemand12 { get; set; }
public string IsUpdate { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
@@ -423,7 +423,7 @@ namespace TaskManager.Contracts.Dtos
///
/// 需求数量
///
- public int QuantityDemand { get; set; } = 1;
+ public decimal? QuantityDemand { get; set; } = 1;
///
/// 交货日期-格式:yyyy-MM-dd
@@ -1067,7 +1067,7 @@ namespace TaskManager.Contracts.Dtos
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
- public int IsDelete { get; set; }
+ public string IsDelete { get; set; }
public int Version { get; set; }
}
@@ -1171,18 +1171,18 @@ public class SUPPLIER_MRP_WARNING_DETAIL_DTO : CherryReadBaseEntityDto
public string VentureSpecific { get; set; }
public string Measures { get; set; }
public string StartMonth { get; set; }
- public int QuantityMeet1 { get; set; }
- public int QuantityMeet2 { get; set; }
- public int QuantityMeet3 { get; set; }
- public int QuantityMeet4 { get; set; }
- public int QuantityMeet5 { get; set; }
- public int QuantityMeet6 { get; set; }
- public int QuantityMeet7 { get; set; }
- public int QuantityMeet8 { get; set; }
- public int QuantityMeet9 { get; set; }
- public int QuantityMeet10 { get; set; }
- public int QuantityMeet11 { get; set; }
- public int QuantityMeet12 { get; set; }
+ public decimal? QuantityMeet1 { get; set; }
+ public decimal? QuantityMeet2 { get; set; }
+ public decimal? QuantityMeet3 { get; set; }
+ public decimal? QuantityMeet4 { get; set; }
+ public decimal? QuantityMeet5 { get; set; }
+ public decimal? QuantityMeet6 { get; set; }
+ public decimal? QuantityMeet7 { get; set; }
+ public decimal? QuantityMeet8 { get; set; }
+ public decimal? QuantityMeet9 { get; set; }
+ public decimal? QuantityMeet10 { get; set; }
+ public decimal? QuantityMeet11 { get; set; }
+ public decimal? QuantityMeet12 { get; set; }
}
public class SUPPLIER_CON_MMRP_DTO
@@ -1266,52 +1266,52 @@ public class SUPPLIER_MRP_WARNING_DETAIL_DTO : CherryReadBaseEntityDto
///
/// 需求起始日期(格式:yyyy-MM-dd)
///
- public DateTime StartDate { get; set; }
+ public DateTime? StartDate { get; set; }
///
/// 需求起始日期的需求数量
///
- public int QuantityDemand1 { get; set; } = 1;
+ public decimal? QuantityDemand1 { get; set; } = 1;
///
/// 起始日期+1天的需求数量
///
- public int QuantityDemand2 { get; set; } = 1;
+ public decimal? QuantityDemand2 { get; set; } = 1;
///
/// 起始日期+2天的需求数量(以此类推)
///
- public int QuantityDemand3 { get; set; } = 1;
+ public decimal? QuantityDemand3 { get; set; } = 1;
// 省略 QuantityDemand4 至 QuantityDemand31 的重复注释(格式与上述一致)
- public decimal QuantityDemand4 { get; set; } = 0;
- public decimal QuantityDemand5 { get; set; } = 0;
- public decimal QuantityDemand6 { get; set; } = 0;
- public decimal QuantityDemand7 { get; set; } = 0;
- public decimal QuantityDemand8 { get; set; } = 0;
- public decimal QuantityDemand9 { get; set; } = 0;
- public decimal QuantityDemand10 { get; set; } = 0;
- public decimal QuantityDemand11 { get; set; } = 0;
- public decimal QuantityDemand12 { get; set; } = 0;
- public decimal QuantityDemand13 { get; set; } = 0;
- public decimal QuantityDemand14 { get; set; } = 0;
- public decimal QuantityDemand15 { get; set; } = 0;
- public decimal QuantityDemand16 { get; set; } = 0;
- public decimal QuantityDemand17 { get; set; } = 0;
- public decimal QuantityDemand18 { get; set; } = 0;
- public decimal QuantityDemand19 { get; set; } = 0;
- public decimal QuantityDemand20 { get; set; } = 0;
- public decimal QuantityDemand21 { get; set; } = 0;
- public decimal QuantityDemand22 { get; set; } = 0;
- public decimal QuantityDemand23 { get; set; } = 0;
- public decimal QuantityDemand24 { get; set; } = 0;
- public decimal QuantityDemand25 { get; set; } = 0;
- public decimal QuantityDemand26 { get; set; } = 0;
- public decimal QuantityDemand27 { get; set; } = 0;
- public decimal QuantityDemand28 { get; set; } = 0;
- public decimal QuantityDemand29 { get; set; } = 0;
- public decimal QuantityDemand30 { get; set; } = 0;
- public decimal QuantityDemand31 { get; set; } = 0;
+ public decimal? QuantityDemand4 { get; set; } = 0;
+ public decimal? QuantityDemand5 { get; set; } = 0;
+ public decimal? QuantityDemand6 { get; set; } = 0;
+ public decimal? QuantityDemand7 { get; set; } = 0;
+ public decimal? QuantityDemand8 { get; set; } = 0;
+ public decimal? QuantityDemand9 { get; set; } = 0;
+ public decimal? QuantityDemand10 { get; set; } = 0;
+ public decimal? QuantityDemand11 { get; set; } = 0;
+ public decimal? QuantityDemand12 { get; set; } = 0;
+ public decimal? QuantityDemand13 { get; set; } = 0;
+ public decimal? QuantityDemand14 { get; set; } = 0;
+ public decimal? QuantityDemand15 { get; set; } = 0;
+ public decimal? QuantityDemand16 { get; set; } = 0;
+ public decimal? QuantityDemand17 { get; set; } = 0;
+ public decimal? QuantityDemand18 { get; set; } = 0;
+ public decimal? QuantityDemand19 { get; set; } = 0;
+ public decimal? QuantityDemand20 { get; set; } = 0;
+ public decimal? QuantityDemand21 { get; set; } = 0;
+ public decimal? QuantityDemand22 { get; set; } = 0;
+ public decimal? QuantityDemand23 { get; set; } = 0;
+ public decimal? QuantityDemand24 { get; set; } = 0;
+ public decimal? QuantityDemand25 { get; set; } = 0;
+ public decimal? QuantityDemand26 { get; set; } = 0;
+ public decimal? QuantityDemand27 { get; set; } = 0;
+ public decimal? QuantityDemand28 { get; set; } = 0;
+ public decimal? QuantityDemand29 { get; set; } = 0;
+ public decimal? QuantityDemand30 { get; set; } = 0;
+ public decimal? QuantityDemand31 { get; set; } = 0;
///
/// 数据变更标识(1=更新需求,0=未变更)
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs
index 9b6bfd7..324475b 100644
--- a/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs
@@ -60,79 +60,79 @@ namespace TaskManager.Entity.Entitys
///
[ExporterHeader(DisplayName = "起始日期")]
[ImporterHeader(Name = "起始日期")]
- public string StartDate { get; set; }
+ public DateTime? StartDate { get; set; }
///
/// 满足数量1,数量锁定,7日内满足数量必须等于需求数量
///
[ExporterHeader(DisplayName = "满足数量1")]
[ImporterHeader(Name = "满足数量1")]
- public decimal QuantityMeet1 { get; set; }
+ public decimal? QuantityMeet1 { get; set; }
///
/// 满足数量2,
///
[ExporterHeader(DisplayName = "满足数量2")]
[ImporterHeader(Name = "满足数量2")]
- public decimal QuantityMeet2 { get; set; }
+ public decimal? QuantityMeet2 { get; set; }
///
/// 满足数量3,
///
[ExporterHeader(DisplayName = "满足数量3")]
[ImporterHeader(Name = "满足数量3")]
- public decimal QuantityMeet3 { get; set; }
+ public decimal? QuantityMeet3 { get; set; }
///
/// 满足数量4,
///
[ExporterHeader(DisplayName = "满足数量4")]
[ImporterHeader(Name = "满足数量4")]
- public decimal QuantityMeet4 { get; set; }
+ public decimal? QuantityMeet4 { get; set; }
///
/// 满足数量5,
///
[ExporterHeader(DisplayName = "满足数量5")]
[ImporterHeader(Name = "满足数量5")]
- public decimal QuantityMeet5 { get; set; }
+ public decimal? QuantityMeet5 { get; set; }
///
/// 满足数量6,
///
[ExporterHeader(DisplayName = "满足数量6")]
[ImporterHeader(Name = "满足数量6")]
- public decimal QuantityMeet6 { get; set; }
+ public decimal? QuantityMeet6 { get; set; }
///
/// 满足数量7,
///
[ExporterHeader(DisplayName = "满足数量7")]
[ImporterHeader(Name = "满足数量7")]
- public decimal QuantityMeet7 { get; set; }
+ public decimal? QuantityMeet7 { get; set; }
///
/// 满足数量8,根据物料需求计划接口发布的需求天数,针对企业自身产能情况反馈可满足数量注:目前发送数据为滚动12天的数据,13至31天的字段为预留,未来可能会增加至31天
///
[ExporterHeader(DisplayName = "满足数量8")]
[ImporterHeader(Name = "满足数量8")]
- public decimal QuantityMeet8 { get; set; }
+ public decimal? QuantityMeet8 { get; set; }
///
/// 满足数量9,
///
[ExporterHeader(DisplayName = "满足数量9")]
[ImporterHeader(Name = "满足数量9")]
- public decimal QuantityMeet9 { get; set; }
+ public decimal? QuantityMeet9 { get; set; }
///
/// 满足数量10,
///
[ExporterHeader(DisplayName = "满足数量10")]
[ImporterHeader(Name = "满足数量10")]
- public decimal QuantityMeet10 { get; set; }
+ public decimal? QuantityMeet10 { get; set; }
///
/// 满足数量11,
///
[ExporterHeader(DisplayName = "满足数量11")]
[ImporterHeader(Name = "满足数量11")]
- public decimal QuantityMeet11 { get; set; }
+ public decimal? QuantityMeet11 { get; set; }
///
/// 满足数量12,
///
[ExporterHeader(DisplayName = "满足数量12")]
[ImporterHeader(Name = "满足数量12")]
- public decimal QuantityMeet12 { get; set; }
+ public decimal? QuantityMeet12 { get; set; }
///
/// 满足数量13,
///
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs
index 4b1d1ba..b527eff 100644
--- a/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs
@@ -66,37 +66,37 @@ namespace TaskManager.Entity.Entitys
///
[ExporterHeader(DisplayName = "满足数量1")]
[ImporterHeader(Name = "满足数量1")]
- public decimal QuantityMeet1 { get; set; }
+ public decimal? QuantityMeet1 { get; set; }
///
/// 满足数量2
///
[ExporterHeader(DisplayName = "满足数量2")]
[ImporterHeader(Name = "满足数量2")]
- public decimal QuantityMeet2 { get; set; }
+ public decimal? QuantityMeet2 { get; set; }
///
/// 满足数量3
///
[ExporterHeader(DisplayName = "满足数量3")]
[ImporterHeader(Name = "满足数量3")]
- public decimal QuantityMeet3 { get; set; }
+ public decimal? QuantityMeet3 { get; set; }
///
/// 满足数量4
///
[ExporterHeader(DisplayName = "满足数量4")]
[ImporterHeader(Name = "满足数量4")]
- public decimal QuantityMeet4 { get; set; }
+ public decimal? QuantityMeet4 { get; set; }
///
/// 满足数量5
///
[ExporterHeader(DisplayName = "满足数量5")]
[ImporterHeader(Name = "满足数量5")]
- public decimal QuantityMeet5 { get; set; }
+ public decimal? QuantityMeet5 { get; set; }
///
/// 满足数量6
///
[ExporterHeader(DisplayName = "满足数量6")]
[ImporterHeader(Name = "满足数量6")]
- public decimal QuantityMeet6 { get; set; }
+ public decimal? QuantityMeet6 { get; set; }
///
/// 满足数量7
///
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs
index ff08967..3945b3b 100644
--- a/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs
@@ -30,7 +30,7 @@ namespace TaskManager.Entity.Entitys
///
[ExporterHeader(DisplayName = "满足数量")]
[ImporterHeader(Name = "满足数量")]
- public decimal QuantityMeet { get; set; }
+ public decimal? QuantityMeet { get; set; }
///
/// 反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常)
///
diff --git a/API/TaskManager.Entity/Entity.cs b/API/TaskManager.Entity/Entity.cs
index 492eb77..bd8ba6d 100644
--- a/API/TaskManager.Entity/Entity.cs
+++ b/API/TaskManager.Entity/Entity.cs
@@ -227,11 +227,13 @@ namespace TaskManager.Entity
/// 请求发出日期
///
[ExporterHeader(DisplayName = "请求发出日期")]
+ [MaxLength(30)]
public string? RequestDate { get; set; }
///
/// 同步ID
///
[ExporterHeader(DisplayName = "奇瑞记录ID")]
+ [MaxLength(50)]
public string? Id { get; set; }
}
@@ -638,7 +640,7 @@ namespace TaskManager.Entity
///
[JsonPropertyName("quantityDemand12")]
[ExporterHeader(DisplayName = "需求数量12")]
- public int QuantityDemand12 { get; set; } =0;
+ public decimal? QuantityDemand12 { get; set; } =0;
///
/// 当文件夹数据发生变更时(更新需求=1/否则=0)
@@ -748,19 +750,20 @@ namespace TaskManager.Entity
/// 需求起始日期(格式:yyyy-MM-dd)
///
[ExporterHeader(DisplayName = "需求起始日期")]
- public DateTime StartDate { get; set; }
+ public DateTime? StartDate { get; set; }
+
///
/// 需求起始日期的需求数量
///
[ExporterHeader(DisplayName = "第1天需求数量")]
- public int QuantityDemand1 { get; set; } =0;
+ public decimal? QuantityDemand1 { get; set; } =0;
///
/// 起始日期+1天的需求数量
///
[ExporterHeader(DisplayName = "第2天需求数量")]
- public int QuantityDemand2 { get; set; } =0;
+ public decimal? QuantityDemand2 { get; set; } =0;
///
/// 起始日期+2天的需求数量(以此类推)
@@ -1157,12 +1160,12 @@ namespace TaskManager.Entity
/// 到货数量
///
[ExporterHeader(DisplayName = "到货数量")]
- public int QuantityDelivery { get; set; } =0;
+ public decimal? QuantityDelivery { get; set; } =0;
///
/// 备注:含批次号信息
///
- [MaxLength(50)]
+
[ExporterHeader(DisplayName = "备注")]
public string? Note { get; set; }
@@ -1673,7 +1676,7 @@ namespace TaskManager.Entity
/// 数量
///
[ExporterHeader(DisplayName = "数量")]
- public int QuantityDelivery { get; set; } =0;
+ public decimal? QuantityDelivery { get; set; } =0;
///
/// 创建时间
diff --git a/API/TaskManager.EntityFramework/JobDbContext.cs b/API/TaskManager.EntityFramework/JobDbContext.cs
index fbf4c87..ab27fd9 100644
--- a/API/TaskManager.EntityFramework/JobDbContext.cs
+++ b/API/TaskManager.EntityFramework/JobDbContext.cs
@@ -5,6 +5,7 @@ using Microsoft.EntityFrameworkCore.ChangeTracking;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.Extensions.Configuration;
+using OfficeOpenXml.FormulaParsing.Excel.Functions.Logical;
using System;
using System;
using System.Collections.Generic;
@@ -1309,35 +1310,35 @@ namespace TaskManager.EntityFramework
{
b.ToTable("SUPPLIER_CON_MMRP");
//供应商代码
- b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ b.Property(e => e.SupplierCode).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//需求发布版次,取自M+6月物料需求计划接口中的需求发布版次,针对与这个版次的需求进行风险反馈
- b.Property(e => e.ReleaseEdition).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ b.Property(e => e.ReleaseEdition).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//零件号,奇瑞零件号
- b.Property(e => e.MaterialCode).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired();
+ b.Property(e => e.MaterialCode).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//工厂代码,
- b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ b.Property(e => e.PlantId).HasColumnType("NVARCHAR").HasMaxLength(64).IsRequired(false);
//反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常)
- b.Property(e => e.FeedbackResults).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
+ b.Property(e => e.FeedbackResults).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false);
//风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他
- b.Property(e => e.VentureType).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired(false);
+ b.Property(e => e.VentureType).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//具体风险,当反馈结果=1时,此字段必输描述具体风险
- b.Property(e => e.VentureSpecific).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
+ b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//应对措施,当反馈结果=1时,此字段必输描述具体应对措施
- b.Property(e => e.Measures).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
+ b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//起始月份-格式:yyyy-MM
- b.Property(e => e.StartMonth).HasColumnType("CHAR").HasMaxLength(7).IsRequired();
+ b.Property(e => e.StartMonth).HasColumnType("NVARCHAR").HasMaxLength(7).IsRequired(false);
//满足数量1
- b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量2
- b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量3
- b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量4
- b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量5
- b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量6
- b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量7
b.Property(e => e.QuantityMeet7).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量8
@@ -1365,47 +1366,47 @@ namespace TaskManager.EntityFramework
{
b.ToTable("SUPPLIER_CON_DATE");
//供应商代码
- b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ b.Property(e => e.SupplierCode).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//需求发布版次,取自日物料需求计划接口中的需求发布版次,针对与这个版次的需求进行风险反馈
- b.Property(e => e.ReleaseEdition).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ b.Property(e => e.ReleaseEdition).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//零件号,奇瑞零件号
- b.Property(e => e.MaterialCode).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired();
+ b.Property(e => e.MaterialCode).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//工厂代码
- b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ b.Property(e => e.PlantId).HasColumnType("NVARCHAR").HasMaxLength(64).IsRequired(false);
//反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常)
- b.Property(e => e.FeedbackResults).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
+ b.Property(e => e.FeedbackResults).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false);
//风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他
- b.Property(e => e.VentureType).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired(false);
+ b.Property(e => e.VentureType).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//具体风险,当反馈结果=1时,此字段必输描述具体风险
- b.Property(e => e.VentureSpecific).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
+ b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//应对措施,当反馈结果=1时,此字段必输描述具体应对措施
- b.Property(e => e.Measures).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
+ b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//起始日期,格式:yyyy-MM-dd
- b.Property(e => e.StartDate).HasColumnType("CHAR").HasMaxLength(10).IsRequired();
+
//满足数量1,数量锁定,7日内满足数量必须等于需求数量
- b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量2,
- b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量3,
- b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量4,
- b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量5,
- b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量6,
- b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量7,
- b.Property(e => e.QuantityMeet7).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet7).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量8,根据物料需求计划接口发布的需求天数,针对企业自身产能情况反馈可满足数量注:目前发送数据为滚动12天的数据,13至31天的字段为预留,未来可能会增加至31天
- b.Property(e => e.QuantityMeet8).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet8).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量9,
- b.Property(e => e.QuantityMeet9).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet9).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量10,
- b.Property(e => e.QuantityMeet10).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet10).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量11,
- b.Property(e => e.QuantityMeet11).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet11).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量12,
- b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量13,
b.Property(e => e.QuantityMeet13).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量14,
@@ -1459,21 +1460,21 @@ namespace TaskManager.EntityFramework
{
b.ToTable("SUPPLIER_CON_PO");
//供应商代码
- b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ b.Property(e => e.SupplierCode).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//采购订单号
- b.Property(e => e.PurchaseOrder).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired();
+ b.Property(e => e.PurchaseOrder).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//行项目号
- b.Property(e => e.SerialNumber).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
+ b.Property(e => e.SerialNumber).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false);
//满足数量
- b.Property(e => e.QuantityMeet).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ b.Property(e => e.QuantityMeet).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常)
- b.Property(e => e.FeedbackResults).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
+ b.Property(e => e.FeedbackResults).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false);
//风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他
- b.Property(e => e.VentureType).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired(false);
+ b.Property(e => e.VentureType).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//具体风险,当反馈结果=1时,此字段必输描述具体风险
- b.Property(e => e.VentureSpecific).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
+ b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//应对措施,当反馈结果=1时,此字段必输描述具体应对措施
- b.Property(e => e.Measures).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
+ b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(false);
diff --git a/API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs
new file mode 100644
index 0000000..3418df4
--- /dev/null
+++ b/API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs
@@ -0,0 +1,5242 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using TaskManager.EntityFramework;
+
+#nullable disable
+
+namespace TaskManager.EntityFramework.Migrations
+{
+ [DbContext(typeof(JobDbContext))]
+ [Migration("20250609023049_z202506090001")]
+ partial class z202506090001
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "8.0.0")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FeedbackResults")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("MaterialCode")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Measures")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("QuantityMeet1")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet10")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet11")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet12")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet13")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet14")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet15")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet16")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet17")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet18")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet19")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet2")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet20")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet21")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet22")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet23")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet24")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet25")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet26")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet27")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet28")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet29")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet3")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet30")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet31")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet4")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet5")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet6")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet7")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet8")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet9")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("ReleaseEdition")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StartDate")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("CHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VentureSpecific")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VentureType")
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_CON_DATE", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FeedbackResults")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("MaterialCode")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Measures")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("QuantityMeet1")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet10")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet11")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet12")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet2")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet3")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet4")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet5")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet6")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet7")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet8")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet9")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("ReleaseEdition")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StartMonth")
+ .IsRequired()
+ .HasMaxLength(7)
+ .HasColumnType("CHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VentureSpecific")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VentureType")
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_CON_MMRP", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FeedbackResults")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Measures")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PurchaseOrder")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("QuantityMeet")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("SerialNumber")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VentureSpecific")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VentureType")
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_CON_PO", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DateTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("DeviceId")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar");
+
+ b.Property("DeviceName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("FileName")
+ .IsRequired()
+ .HasMaxLength(300)
+ .HasColumnType("VARCHAR");
+
+ b.Property("FileUrl")
+ .IsRequired()
+ .HasMaxLength(1000)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StationId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StationName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Type")
+ .IsRequired()
+ .HasMaxLength(16)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductSn")
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DateTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("DeviceId")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar");
+
+ b.Property("DeviceName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("FileName")
+ .IsRequired()
+ .HasMaxLength(300)
+ .HasColumnType("VARCHAR");
+
+ b.Property("FileUrl")
+ .IsRequired()
+ .HasMaxLength(1000)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StationId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StationName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Type")
+ .IsRequired()
+ .HasMaxLength(16)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductSn")
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("ChineseUnit")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CollectTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DataCollectionPoint")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("EnvIndicatorName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("EquipmentCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("EquipmentName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("LowerLimit")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("NumValue")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("UpperLimit")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("WorkshopId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductSn")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ClassOfName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DefectsCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("DefectsDesc")
+ .IsRequired()
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("DefectsLevel")
+ .IsRequired()
+ .HasMaxLength(1)
+ .HasColumnType("CHAR");
+
+ b.Property("DefectsName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ManufactureNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Numberofdefect")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductBatchNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StationId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StationName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StatisticalTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VendorProductBatch")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductSn")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkShift")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_FLAW", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DateTime")
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("Launched")
+ .HasMaxLength(6)
+ .HasColumnType("VARCHAR");
+
+ b.Property("MpnCode")
+ .HasMaxLength(16)
+ .HasColumnType("VARCHAR");
+
+ b.Property("MpnName")
+ .HasMaxLength(16)
+ .HasColumnType("VARCHAR");
+
+ b.Property("OemHardwareRevision")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("OemModel")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("OemProjectName")
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("OemSoftwareRevision")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantId")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantName")
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProcurementType")
+ .HasMaxLength(16)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Type")
+ .HasPrecision(1)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ValidDays")
+ .IsRequired()
+ .HasMaxLength(12)
+ .HasColumnType("CHAR");
+
+ b.Property("VendorHardwareRevision")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DateTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("DeviceId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("DeviceName")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar");
+
+ b.Property("ManufactureNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductBatchNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Rate")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("RateTagValue")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StationId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StationName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StatisticalTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VendorProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkShift")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property