using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZhongLianModel { [SugarTable("ZL_Maintenance_{year}{month}{day}")] [SplitTable(SplitType.Year)] public class MaintenanceDO { public MaintenanceDO() { BomCodes = new string[0]; Boms = new string[0]; ErrorRemarkPhoto = new string[0]; ProcessResultPhoto = new string[0]; } /// /// 编号 /// [SugarColumn(IsPrimaryKey = true, Length = 100)] public string? Id { get; set; } /// /// 标题 /// [SugarColumn(IsNullable = true, Length = 200)] public string? Title { get; set; } /// /// 单据类型 /// [SugarColumn(IsNullable = true, Length = 50)] public string? Type { get; set; } /// /// 维修人员编号 /// [SugarColumn(IsNullable = true, Length = 100)] public string? MaintenanceUid { get; set; } /// /// 维修人员信息 /// [SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")] public Dictionary? MaintenanceUser { get; set; } /// /// 设备分类编号 /// [SugarColumn(IsNullable = true, Length = 100)] public string? DeviceTypeCode { get; set; } /// /// 设备分类 /// [SugarColumn(IsNullable = true, Length = 200)] public string? DeviceType { get; set; } /// /// 维修日期 /// [SugarColumn(IsNullable = true)] public DateTime? MaintenanceDate { get; set; } /// /// 安装单状态,0:未完成,1:维修人员已提交,2:审核未通过,3:已完成 /// [SugarColumn(IsNullable = true, Length = 2)] public int? State { get; set; } /// /// 备注 /// [SugarColumn(IsNullable = true, ColumnDataType = "Text")] public string? Remark { get; set; } /// /// 故障归类编号 /// [SugarColumn(IsNullable = true, Length = 100)] public string? ErrorTypeCode { get; set; } /// /// 故障归类 /// [SugarColumn(IsNullable = true, Length = 200)] public string? ErrorType { get; set; } /// /// 配件清单编号 /// [SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")] public string[]? BomCodes { get; set; } /// /// 配件清单 /// [SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")] public string[]? Boms { get; set; } /// /// 处理方式编号 /// [SugarColumn(IsNullable = true, Length = 100)] public string? ErrorActionCode { get; set; } /// /// 处理方式 /// [SugarColumn(IsNullable = true, Length = 200)] public string? ErrorAction { get; set; } /// /// 故障代码编号 /// [SugarColumn(IsNullable = true, Length = 100)] public string? ErrorCodeCode { get; set; } /// /// 故障代码 /// [SugarColumn(IsNullable = true, Length = 200)] public string? ErrorCode { get; set; } /// /// 故障分析 /// [SugarColumn(IsNullable = true, Length = 500)] public string? ErrorRemark { get; set; } /// /// 故障分析图片 /// [SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")] public string[]? ErrorRemarkPhoto { get; set; } /// /// 处理结果 /// [SugarColumn(IsNullable = true, Length = 500)] public string? ProcessResult { get; set; } /// /// 处理结果图片 /// [SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")] public string[]? ProcessResultPhoto { get; set; } /// /// 创建日期 /// [SplitField] [SugarColumn(IsNullable = true)] public DateTime? CreateDate { get; set; } } }