ningshuxia
2022-11-14 e4680615a852b2eb115b32c8bcbc3b788c3f9ef4
Calculation/IStation.Calculation.Eta/standard/logic/EtaStandardLogicHourHelper.cs
@@ -60,34 +60,34 @@
                            record.LowerLimit = configure.LowerLimit;
                            record.UpperLimit = configure.UpperLimit;
                            record.Qmin = normal_limit_hour_list.Min(t => t.Qa.Value);
                            record.Qmax = normal_limit_hour_list.Max(t => t.Qa.Value);
                            record.Qavg = normal_limit_hour_list.Average(t => t.Qa.Value);
                            record.Qmin = normal_limit_hour_list.Where(x=>x.Qa.HasValue).Min(t => t.Qa.Value);
                            record.Qmax = normal_limit_hour_list.Where(x => x.Qa.HasValue).Max(t => t.Qa.Value);
                            record.Qavg = normal_limit_hour_list.Where(x => x.Qa.HasValue).Average(t => t.Qa.Value);
                            record.Emin = normal_limit_hour_list.Min(t => t.Ea.Value);
                            record.Emax = normal_limit_hour_list.Max(t => t.Ea.Value);
                            record.Eavg = normal_limit_hour_list.Average(t => t.Ea.Value);
                            record.Emin = normal_limit_hour_list.Where(x => x.Ea.HasValue).Min(t => t.Ea.Value);
                            record.Emax = normal_limit_hour_list.Where(x => x.Ea.HasValue).Max(t => t.Ea.Value);
                            record.Eavg = normal_limit_hour_list.Where(x => x.Ea.HasValue).Average(t => t.Ea.Value);
                            record.Hmin = normal_limit_hour_list.Min(t => t.Ha.Value);
                            record.Hmax = normal_limit_hour_list.Max(t => t.Ha.Value);
                            record.Havg = normal_limit_hour_list.Average(t => t.Ha.Value);
                            record.Hmin = normal_limit_hour_list.Where(x => x.Ha.HasValue).Min(t => t.Ha.Value);
                            record.Hmax = normal_limit_hour_list.Where(x => x.Ha.HasValue).Max(t => t.Ha.Value);
                            record.Havg = normal_limit_hour_list.Where(x => x.Ha.HasValue).Average(t => t.Ha.Value);
                            record.Pmin = normal_limit_hour_list.Min(t => t.Pa.Value);
                            record.Pmax = normal_limit_hour_list.Max(t => t.Pa.Value);
                            record.Pavg = normal_limit_hour_list.Average(t => t.Pa.Value);
                            record.Pmin = normal_limit_hour_list.Where(x => x.Pa.HasValue).Min(t => t.Pa.Value);
                            record.Pmax = normal_limit_hour_list.Where(x => x.Pa.HasValue).Max(t => t.Pa.Value);
                            record.Pavg = normal_limit_hour_list.Where(x => x.Pa.HasValue).Average(t => t.Pa.Value);
                            record.WPmin = normal_limit_hour_list.Min(t => t.WPa.Value);
                            record.WPmax = normal_limit_hour_list.Max(t => t.WPa.Value);
                            record.WPavg = normal_limit_hour_list.Average(t => t.WPa.Value);
                            record.WPmin = normal_limit_hour_list.Where(x => x.WPa.HasValue).Min(t => t.WPa.Value);
                            record.WPmax = normal_limit_hour_list.Where(x => x.WPa.HasValue).Max(t => t.WPa.Value);
                            record.WPavg = normal_limit_hour_list.Where(x => x.WPa.HasValue).Average(t => t.WPa.Value);
                            record.UWPmin = normal_limit_hour_list.Min(t => t.UWPa.Value);
                            record.UWPmax = normal_limit_hour_list.Max(t => t.UWPa.Value);
                            record.UWPavg = normal_limit_hour_list.Average(t => t.UWPa.Value);
                            record.UWPmin = normal_limit_hour_list.Where(x => x.UWPa.HasValue).Min(t => t.UWPa.Value);
                            record.UWPmax = normal_limit_hour_list.Where(x => x.UWPa.HasValue).Max(t => t.UWPa.Value);
                            record.UWPavg = normal_limit_hour_list.Where(x => x.UWPa.HasValue).Average(t => t.UWPa.Value);
                            record.Qt = normal_limit_hour_list.Sum(x => x.Qa.Value * x.Duration) / 3600f;
                            record.Qtt = run_normal_hour_list.Sum(x => x.Qa.Value * x.Duration) / 3600f;
                            record.Dt = normal_limit_hour_list.Sum(x => x.Pa.Value * x.Duration) / 3600f;
                            record.Dtt = run_normal_hour_list.Sum(x => x.Pa.Value * x.Duration) / 3600f;
                            record.Qt = normal_limit_hour_list.Where(x => x.Qa.HasValue).Sum(x => x.Qa.Value * x.Duration) / 3600f;
                            record.Qtt = run_normal_hour_list.Where(x => x.Qa.HasValue).Sum(x => x.Qa.Value * x.Duration) / 3600f;
                            record.Dt = normal_limit_hour_list.Where(x => x.Pa.HasValue).Sum(x => x.Pa.Value * x.Duration) / 3600f;
                            record.Dtt = run_normal_hour_list.Where(x => x.Pa.HasValue).Sum(x => x.Pa.Value * x.Duration) / 3600f;
                            record.PointCount = normal_limit_hour_list.Count;
                            record.TotalPointCount = run_normal_hour_list.Count;