diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
index d8e8a89d..fa0e809f 100644
--- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
+++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
@@ -73,6 +73,7 @@ using Win.Sfs.SettleAccount.Entities.BT_Car;
using Win.Sfs.SettleAccount.Entities.WMS;
using Win.Sfs.SettleAccount.Entities.HQ_F;
using Win.Sfs.SettleAccount.Entities.UnHQSettleAccounts;
+using Win.Sfs.SettleAccount.Errors;
namespace Win.Sfs.SettleAccount
{
@@ -386,6 +387,7 @@ namespace Win.Sfs.SettleAccount
builder.ConfigureWmsDetailWithCodeReport(options);
builder.ConfigureWmsCustomerKanbanOutPut(options);
builder.ConfigureWmsCustomerKanbanOutPutDetial(options);
+ builder.ConfigureErrorBill(options);
#endregion
@@ -442,6 +444,31 @@ namespace Win.Sfs.SettleAccount
}
+
+
+ ///
+ /// M平台出库详表
+ ///
+ ///
+ ///
+ private static void ConfigureErrorBill(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options)
+ {
+
+ builder.Entity(b =>
+ {
+ b.ToTable($"{options.TablePrefix}_ErrorBill", options.Schema);
+ b.ConfigureByConvention();
+ b.Property(x => x.BillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
+ b.Property(x => x.WmsBillNum).IsRequired().HasMaxLength(CommonConsts.MaxCodeLength);
+
+ b.Property(x => x.CustomerMaterialCode).HasMaxLength(CommonConsts.MaxCodeLength);
+
+ b.Property(x => x.MaterialCode).HasMaxLength(CommonConsts.MaxCodeLength);
+ b.HasIndex(x => new { x.CustomerMaterialCode,x.BillNum });
+ });
+
+ }
+
///
/// 一汽轿车-出库单
///