From f4b40f22cc4bd4cc0e6d30770f065cadb02cb2e1 Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Wed, 19 Jun 2024 14:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=A1=91=E5=AE=9A=E7=82=B9=E9=85=8D?= =?UTF-8?q?=E9=80=81=E8=BF=87=E6=BB=A4=E5=BE=85=E4=B8=8B=E5=8F=91=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tnb.ProductionMgr/TimeWorkService.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs index f905df1d..70ede4a4 100644 --- a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs @@ -27,6 +27,7 @@ using Result = Tnb.WarehouseMgr.Entities.Dto.Outputs.Result; using Tnb.BasicData; using Tnb.EquipMgr.Entities; using Tnb.WarehouseMgr; +using Tnb.WarehouseMgr.Entities; namespace Tnb.ProductionMgr { @@ -262,6 +263,21 @@ namespace Tnb.ProductionMgr Log.Error($"{eqpDaq.equip_code}状态不正常"); continue; } + if (string.IsNullOrEmpty(equipment.upmat_location_id)) + { + Log.Error($"{equipment.name}未配置上料库位"); + continue; + } + + if (await _db.Queryable().AnyAsync(x => + x.endlocation_id == equipment.upmat_location_id && + x.biz_type == WmsWareHouseConst.BIZTYPE_WMSDELIVERY_ID && + x.status == WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID)) + { + Log.Error($"{equipment.name}存在待下发的任务"); + continue; + } + bool? value = await _redisData.TryGetValueByKeyField(eqpDaq.equip_code, eqpDaq.label_name); bool valueFlag = _redisData.Get($"{eqpDaq.equip_code}_{eqpDaq.label_name}_flag");