Merge branch 'master' of https://codeup.aliyun.com/62ce7bca487c500c27f70a79/OPS/WMS-Api
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user