tangxu
2024-07-03 871ce0adc5e746833f2a08e3e5f872535eb90516
Model/IStation.Model.Basic/waterLevel/WaterPredictRecord.cs
@@ -25,18 +25,20 @@
        {
            this.ID = rhs.ID;
            this.DayHour = rhs.DayHour;
            this.LastPredictValue = rhs.LastPredictValue;
            this.LastPredictTime = rhs.LastPredictTime;
            this.LastPredictValue = rhs.LastPredictValue;
            this.LastPredictTime = rhs.LastPredictTime;
            this.PredictValueList = rhs.PredictValueList;
            this.PredictTime = rhs.PredictTime;
            this.States = rhs.States;
            this.Description = rhs.Description;
        }
        //转换为int类型的时间
        public static int ConvertIntDay(DateTime datetime)
        {
            return int.Parse(string.Format("{0:00}{1:00}{2:00}", datetime.Month, datetime.Day, datetime.Hour));
        }
        /// <summary>
        /// id
        /// </summary>
@@ -46,8 +48,6 @@
        /// 小时: 例如2024-05-14 01:00 表示为 051401
        /// </summary>
        public int DayHour { get; set; }
        /// <summary>
        /// 最新预测流量(滚动值)
@@ -68,7 +68,6 @@
        /// 预测流量值时间:PredictValueList对应时间
        /// </summary>
        public DateTime PredictTime { get; set; }
        /// <summary>
        /// 状态码(0为错误,1为正确)