using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; namespace Tnb.ProductionMgr.Entities; /// /// 批次维修主资料 /// [SugarTable("prd_lot_repair")] public partial class PrdLotRepair : BaseEntity { public PrdLotRepair() { id = SnowflakeIdHelper.NextId(); } /// /// 租户ID /// public string? tenant_id { get; set; } /// /// 所属组织 /// public string? org_id { get; set; } /// /// 批次号 /// public string lot_no { get; set; } = string.Empty; /// /// 工单代码 /// public string mo_code { get; set; } = string.Empty; /// /// 产品代码 /// public string item_code { get; set; } = string.Empty; /// /// 送修工艺路线代码 /// public string from_route_code { get; set; } = string.Empty; /// /// 送修工艺路线版本 /// public string from_route_version { get; set; } = string.Empty; /// /// 送修工序代码 /// public string from_process_code { get; set; } = string.Empty; /// /// 送修工段代码 /// public string? from_segment_code { get; set; } /// /// 送修产线代码 /// public string? from_production_line_code { get; set; } /// /// 送修工位代码 /// public string from_station_code { get; set; } = string.Empty; /// /// 送修年份 /// public int from_year { get; set; } /// /// 送修月份 /// public int from_month { get; set; } /// /// 送修周别 /// public int from_week { get; set; } /// /// 班制代码 /// public string shift_type_code { get; set; } = string.Empty; /// /// 班次代码 /// public string shift_code { get; set; } = string.Empty; /// /// 时段代码 /// public string? tp_code { get; set; } /// /// 工厂日 /// public int shift_day { get; set; } /// /// 送修人名称 /// public string from_user_name { get; set; } = string.Empty; /// /// 送修备注 /// public string? from_memo { get; set; } /// /// 送修时间 /// public DateTime from_time { get; set; } = DateTime.Now; /// /// 维修来源类型 /// public string from_input_type { get; set; } = string.Empty; /// /// 维修状态 New, (产线发现不良) Repair, (维修中) Complete, (维修完成) /// public string repair_status { get; set; } = string.Empty; /// /// 维修完成人ID /// public string? repaired_user_id { get; set; } /// /// 维修完成人员姓名 /// public string? reparied_user_name { get; set; } /// /// 维修完成时间 /// public DateTime? repaired_time { get; set; } /// /// 维修完成工序代码 /// public string? reparied_station_code { get; set; } /// /// 维系完成回流批次号 /// public string? repaired_reflow_lot_no { get; set; } /// /// 备注 /// public string? remark { get; set; } /// /// 处理状态: UNHANDLE-待处理 HANDLE-已处理 /// public string handle_type { get; set; } = string.Empty; /// /// 时间戳 /// public string? timestamp { get; set; } /// /// 创建用户 /// public string? create_id { get; set; } /// /// 创建时间 /// public DateTime? create_time { get; set; } /// /// 修改用户 /// public string? modify_id { get; set; } /// /// 修改时间 /// public DateTime? modify_time { get; set; } /// /// 扩展字段 /// public string? extras { get; set; } }