93 lines
2.7 KiB
C#
93 lines
2.7 KiB
C#
using SqlSugar;
|
||
|
||
namespace Model.Entity.Inspection
|
||
{
|
||
/// <summary>
|
||
/// 设备维修记录
|
||
/// </summary>
|
||
public class RepairRecordEntity : BaseEntity
|
||
{
|
||
/// <summary>
|
||
/// 设备Id(关联 EquipmentEntity.Id)
|
||
/// </summary>
|
||
public long EquipmentId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 设备编号(冗余便于展示)
|
||
/// </summary>
|
||
[SugarColumn(Length = 50, IsNullable = true)]
|
||
public string? EquipmentCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 设备名称(冗余便于展示)
|
||
/// </summary>
|
||
[SugarColumn(Length = 100, IsNullable = true)]
|
||
public string? EquipmentName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 故障类型(机械故障/电气故障/软件故障/传感器故障/其他)
|
||
/// </summary>
|
||
[SugarColumn(Length = 50, IsNullable = true)]
|
||
public string? FaultType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 故障描述
|
||
/// </summary>
|
||
[SugarColumn(ColumnDataType = "text", IsNullable = true)]
|
||
public string? FaultDescription { get; set; }
|
||
|
||
/// <summary>
|
||
/// 报修日期
|
||
/// </summary>
|
||
public DateTime? ReportDate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 维修开始日期
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public DateTime? RepairStartDate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 维修完成日期
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public DateTime? RepairEndDate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 维修工时(小时)
|
||
/// </summary>
|
||
[SugarColumn(IsNullable = true)]
|
||
public decimal? RepairHours { get; set; }
|
||
|
||
/// <summary>
|
||
/// 维修人员
|
||
/// </summary>
|
||
[SugarColumn(Length = 50, IsNullable = true)]
|
||
public string? RepairPerson { get; set; }
|
||
|
||
/// <summary>
|
||
/// 维修费用(元)
|
||
/// </summary>
|
||
[SugarColumn(DecimalDigits = 2, Length = 18, IsNullable = true)]
|
||
public decimal? RepairCost { get; set; }
|
||
|
||
/// <summary>
|
||
/// 维修状态(待维修/维修中/已完成)
|
||
/// </summary>
|
||
[SugarColumn(Length = 20, IsNullable = true)]
|
||
public string? RepairStatus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 维修结果描述
|
||
/// </summary>
|
||
[SugarColumn(ColumnDataType = "text", IsNullable = true)]
|
||
public string? RepairResult { get; set; }
|
||
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
[SugarColumn(Length = 500, IsNullable = true)]
|
||
public string? Remark { get; set; }
|
||
}
|
||
}
|