优化
This commit is contained in:
@@ -261,7 +261,12 @@ namespace Tnb.ProductionMgr
|
||||
{
|
||||
if (!await db.Queryable<BasEbomH>().AnyAsync(x => x.material_id == item.material_id && x.version == item.ebom_version))
|
||||
{
|
||||
throw Oops.Bah($"系统中无法找到{item.ebom_version}版本");
|
||||
throw Oops.Bah($"系统中无法找到物料清单{item.ebom_version}版本");
|
||||
}
|
||||
|
||||
if (!await db.Queryable<BasMbom>().LeftJoin<BasEbomH>((a, b) => a.ebom_id == b.id).Where((a, b) => a.material_id == item.material_id && b.version == item.ebom_version).AnyAsync())
|
||||
{
|
||||
throw Oops.Bah($"系统中无法找到物料清单对应的生产bom{item.ebom_version}版本");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user