diff --git a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs index 87407b95..e149b0a6 100644 --- a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs @@ -778,7 +778,7 @@ namespace Tnb.ProductionMgr string[] tables = new[] { "base_dictionarydata", "bas_material" }; var erpdb = _db.AsTenant().GetConnection("erpdb"); List list = await erpdb.Queryable().ToListAsync(); - List bomList = await erpdb.Queryable().OrderBy(x=>x.BOMID).OrderBy(x=>x.ROWNO).ToListAsync(); + List bomList = await erpdb.Queryable().ToListAsync(); List erpExtendFields = await _db.Queryable() .Where(x => tables.Contains(x.table_name)).ToListAsync(); Dictionary unitDic = await _db.Queryable()