| Entites/DbModels/VOrderBycl.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Services/WomdaaManager.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Entites/DbModels/VOrderBycl.cs
@@ -198,10 +198,8 @@ [SugarColumn(IsIgnore = true)] public decimal? wjQty { get; set; } [SugarColumn(IsIgnore = true)] public string? finalResult { get; set; } // 新增:开工数采(最早采集值)、当前数采(最新采集值) [SugarColumn(IsIgnore = true)] public long? StartCjNum { get; set; } [SugarColumn(IsIgnore = true)] public long? CurrentCjNum { get; set; } // 新增:初始采集数 [SugarColumn(IsIgnore = true)] public long? InitCjNum { get; set; } // 新增: [SugarColumn(IsIgnore = true)] public long? StartCjNum { get; set; }//开工数采(最早采集值) [SugarColumn(IsIgnore = true)] public long? CurrentCjNum { get; set; }//当前数采(最新采集值) [SugarColumn(IsIgnore = true)] public long? InitCjNum { get; set; }//初始采集数 } Services/WomdaaManager.cs
@@ -119,10 +119,15 @@ var vOrderBycl = new VOrderBycl(); if (numericalList.Count > 0) { // 按采集时间升序排序 var sortedList = numericalList .OrderBy(x => DateTime.TryParse(x.CjTiem, out var dt) ? dt : DateTime.MinValue) .ToList(); // 开工数采:最早一条 vOrderBycl.StartCjNum = numericalList.First().CjNum ?? 0; vOrderBycl.StartCjNum = sortedList.First().CjNum ?? 0; // 当前数采:最新一条 vOrderBycl.CurrentCjNum = numericalList.Last().CjNum ?? 0; vOrderBycl.CurrentCjNum = sortedList.Last().CjNum ?? 0; } else {