From 899414e0c7ac783670ee3950d0efc3a4a7830de4 Mon Sep 17 00:00:00 2001 From: chenwenkai <1084072318@qq.com> Date: Mon, 4 Nov 2024 16:05:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=AE=BE=E5=A4=87=E6=B2=A1?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E5=B7=A5=E4=BD=8D=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index 7efe7018..89b1b690 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -765,10 +765,11 @@ namespace Tnb.ProductionMgr { OrganizeRelationEntity organizeRelationEntity = await db.Queryable() .Where(x => x.ObjectId == input.eqp_id && x.ObjectType == "Eqp").FirstAsync(); - if (organizeRelationEntity == null || organizeRelationEntity.OrganizeId == "") - { - throw Oops.Bah("该设备没绑定工位"); - } + //2024-11-14 日张宇说去掉设备没绑定工位限制条件 + //if (organizeRelationEntity == null || organizeRelationEntity.OrganizeId == "") + //{ + // throw Oops.Bah("该设备没绑定工位"); + //} moTask.workstation_id = organizeRelationEntity?.OrganizeId ?? ""; }