using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
///
/// 批次操作记录信息
///
[SugarTable("prd_lot_operation")]
public partial class PrdLotOperation : BaseEntity
{
public PrdLotOperation()
{
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 route_code { get; set; } = string.Empty;
///
/// 工艺路线版本
///
public string route_version { get; set; } = string.Empty;
///
/// 工序代码
///
public string process_code { get; set; } = string.Empty;
///
/// 工位代码
///
public string station_code { get; set; } = string.Empty;
///
/// 开始时间
///
public DateTime start_time { get; set; } = DateTime.Now;
///
/// 结束时间
///
public DateTime? end_time { get; set; }
///
/// 操作间隔时间(分钟数)
///
public DateTime? work_duration { get; set; }
///
/// 操作类型: START-开工 STOP-停工 RESUME-复工 FEEDBACK-报工 COMPLETE-完工
///
public string operation_type { get; set; } = string.Empty;
///
/// 作业状态: NEW-未开工 WORK-作业中 STOP-停工 COMPLETE-完工
///
public string status { get; set; } = string.Empty;
///
/// 开工进站数量
///
public decimal? input_qty { get; set; }
///
/// 时间戳
///
public string? time_stamp { 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; }
}