|
|
using SqlSugar;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Text;
|
|
|
|
|
|
#region << 版 本 注 释 >>
|
|
|
/*--------------------------------------------------------------------
|
|
|
* 版权所有 (c) 2024 WenJY 保留所有权利。
|
|
|
* CLR版本:4.0.30319.42000
|
|
|
* 机器名称:LAPTOP-E0N2L34V
|
|
|
* 命名空间:SlnMesnac.Model.domain
|
|
|
* 唯一标识:a4dbd270-62c5-47db-a5f7-7e7cb895d15a
|
|
|
*
|
|
|
* 创建者:WenJY
|
|
|
* 电子邮箱:wenjy@mesnac.com
|
|
|
* 创建时间:2024-04-07 16:55:22
|
|
|
* 版本:V1.0.0
|
|
|
* 描述:
|
|
|
*
|
|
|
*--------------------------------------------------------------------
|
|
|
* 修改人:
|
|
|
* 时间:
|
|
|
* 修改说明:
|
|
|
*
|
|
|
* 版本:V1.0.0
|
|
|
*--------------------------------------------------------------------*/
|
|
|
#endregion << 版 本 注 释 >>
|
|
|
namespace SlnMesnac.Model.domain
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 设备停机记录
|
|
|
///</summary>
|
|
|
[SugarTable("dms_record_shut_down"), TenantAttribute("mes")]
|
|
|
public class DmsRecordShutDown
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 主键标识;scada上报的记录
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "record_shut_down_id", IsPrimaryKey = true, IsIdentity = true)]
|
|
|
public int RecordShutDownId { get; set; }
|
|
|
/// <summary>
|
|
|
/// 设备ID,关联dms_base_device_ledger的device_id
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "device_id")]
|
|
|
public int DeviceId { get; set; }
|
|
|
/// <summary>
|
|
|
/// 停机类型ID,关联dm_base_shut_type的shut_type_id
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "shut_type")]
|
|
|
public int? ShutType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 停机原因
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "shut_reason")]
|
|
|
public string? ShutReason { get; set; }
|
|
|
/// <summary>
|
|
|
/// 停机开始时间
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "shut_begin_time")]
|
|
|
public DateTime? ShutBeginTime { get; set; }
|
|
|
/// <summary>
|
|
|
/// 停机结束时间
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "shut_end_time")]
|
|
|
public DateTime? ShutEndTime { get; set; }
|
|
|
/// <summary>
|
|
|
/// 停机时长
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "shut_time")]
|
|
|
public Decimal? ShutTime { get; set; }
|
|
|
/// <summary>
|
|
|
/// 是否标识:1-是;2-否
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "is_flag")]
|
|
|
public int IsFlag { get; set; }
|
|
|
/// <summary>
|
|
|
/// 备注
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "remark")]
|
|
|
public string? Remark { get; set; }
|
|
|
/// <summary>
|
|
|
/// 创建人
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "create_by")]
|
|
|
public string? CreateBy { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 创建时间
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "create_time")]
|
|
|
public DateTime? CreateTime { get; set; }
|
|
|
/// <summary>
|
|
|
/// 更新人
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "update_by")]
|
|
|
public string? UpdateBy { get; set; }
|
|
|
/// <summary>
|
|
|
/// 更新时间
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName = "update_time")]
|
|
|
public DateTime? UpdateTime { get; set; }
|
|
|
}
|
|
|
} |