收货接口优化

This commit is contained in:
tongfei
2023-11-03 16:02:47 +08:00
parent 9086b03616
commit 79eeeeb697
9 changed files with 133 additions and 1 deletions

View File

@@ -126,11 +126,19 @@ namespace WMS.Web.Repositories.Configuration
{
ent.ToTable("t_erp_instock_task");
ent.HasKey(x => x.Id);
ent.HasMany(p => p.Details)
.WithOne()
.HasForeignKey(p => p.Fid)
.OnDelete(DeleteBehavior.Cascade);
ent.HasMany(p => p.Boxs)
.WithOne()
.HasForeignKey(p => p.TaskId)
.OnDelete(DeleteBehavior.Cascade);
});
builder.Entity<InStockTaskBox>(ent =>
{
ent.ToTable("t_erp_instock_task_box");
ent.HasKey(x => x.Id);
});
builder.Entity<InStockTaskDetails>(ent =>
{
@@ -226,6 +234,7 @@ namespace WMS.Web.Repositories.Configuration
public DbSet<InStock> Instock { get; set; }
public DbSet<InStockDetails> InStockDetails { get; set; }
public DbSet<InStockTask> InStockTask { get; set; }
public DbSet<InStockTaskBox> InstockTaskBox { get; set; }
public DbSet<InStockTaskDetails> InStockTaskDetails { get; set; }
public DbSet<BackRecord> BackRecord { get; set; }
public DbSet<BackRecordDetails> BackRecordDetails { get; set; }