From ca63ca7eb50fc70919631befe0acfcec24356197 Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Mon, 24 Jun 2024 17:13:10 +0800 Subject: [PATCH] bug --- ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index f86eb878..cbdde078 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -1952,7 +1952,8 @@ namespace Tnb.ProductionMgr // } - if (basMaterial.category_id.Contains("ZSJ") || basMaterial.category_id.Contains("DGJCJ")) + + if (prdMoTask.schedule_type == 2) { Dictionary dicCommand2 = new(StringComparer.OrdinalIgnoreCase) { @@ -1971,7 +1972,7 @@ namespace Tnb.ProductionMgr } } - if (prdMoTask.schedule_type == 1) + if (basMaterial.category_id.Contains("ZSJ") || basMaterial.category_id.Contains("DGJCJ")) { EqpEquipment equipment = await _db.Queryable().SingleAsync(x => x.id == prdMoTask.eqp_id); EqpDaq eqpDaq3 = await _repository.AsSugarClient().Queryable().