From 6b642324f7f9fc3f7f6ad711daffccda4f7f14e2 Mon Sep 17 00:00:00 2001 From: zhoukeda <1315948824@qq.com> Date: Thu, 16 Nov 2023 09:49:15 +0800 Subject: [PATCH] 1 --- ProductionMgr/Tnb.ProductionMgr/PrdInstockService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdInstockService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdInstockService.cs index 9d5faede..dbd431b5 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdInstockService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdInstockService.cs @@ -64,6 +64,7 @@ namespace Tnb.ProductionMgr .LeftJoin((a, b, c) => a.mold_id == c.id) .LeftJoin((a, b, c, d) => a.eqp_id == d.id) .WhereIF(!string.IsNullOrEmpty(moCode), (a, b, c, d) => a.mo_task_code!.Contains(moCode)) + .Where(a=>string.IsNullOrEmpty(a.parent_id)) .Select((a, b, c, d) => new PrdMoTaskTreeOutput() { id = a.id,