This commit is contained in:
tongfei
2023-11-11 16:44:42 +08:00
9 changed files with 122 additions and 36 deletions

View File

@@ -62,7 +62,7 @@ namespace WMS.Web.Repositories.Configuration
ent.HasKey(x => x.Id);
});
//序列号操作记录
//定时任务时间记录
builder.Entity<ErpOpsSyncDate>(ent =>
{
ent.ToTable("t_wms_sync_date");
@@ -85,6 +85,10 @@ namespace WMS.Web.Repositories.Configuration
{
ent.ToTable("t_wms_outstock_details");
ent.HasKey(x => x.Id);
ent.Property(f => f.SerialNumbers).HasConversion(
v => JsonConvert.SerializeObject(v),
v => JsonConvert.DeserializeObject<List<string>>(v));
});
#endregion

View File

@@ -106,6 +106,15 @@ namespace WMS.Web.Repositories
return res.Clone();
}
public async Task<List<SerialNumbers>> GetEntityListByBoxId(int boxId)
{
var res = await _context.SerialNumbers
.Where(f => f.BoxId==boxId)
.ToListAsync();
return res.Clone();
}
/// <summary>
/// 根据序列号
/// </summary>