diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoService.cs index 4b418519..593aa663 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoService.cs @@ -389,7 +389,7 @@ namespace Tnb.ProductionMgr complete_rate = a.reported_work_qty==null?0:SqlFunc.ToDecimal(a.reported_work_qty*100)/SqlFunc.ToDecimal(a.plan_qty), children = SqlFunc.Subqueryable() .LeftJoin((x,y)=>x.mo_task_status==y.EnCode && y.DictionaryTypeId==DictConst.PrdTaskStatusTypeId) - .Where(x=>x.mo_id==a.id && !SqlFunc.IsNullOrEmpty(x.parent_id)) + .Where(x=>x.mo_id==a.id && SqlFunc.IsNullOrEmpty(x.parent_id)) .OrderByDesc((x,y)=>x.create_time) .ToList((x,y)=>new PrdMoStatisticsDetailOutput() {