生产提报获取下料库位

This commit is contained in:
2024-06-07 14:23:28 +08:00
parent 157662be5d
commit a27442f652
2 changed files with 9 additions and 9 deletions

View File

@@ -228,7 +228,7 @@ namespace Tnb.ProductionMgr
BasFactoryConfig config = await _db.Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
foreach (var equipment in equipments)
{
EqpDaq eqpDaq = eqpDaqs.First(x => x.equip_id == equipment.id);
EqpDaq eqpDaq = eqpDaqs.FirstOrDefault(x => x.equip_id==equipment.id);
if (eqpDaq == null)
{
Log.Error($"{equipment.name}没配置允许入空箱");