using SqlSugar;
namespace MES.Service.Modes;
///
/// SPI/AOI 检测明细实体,记录缺陷分类统计及产线效率指标。
///
[SugarTable("MES_SPI_AOI_DETAIL")]
public class MesSpiAoiDetail
{
///
/// 主键ID,由 Oracle 序列 SEQ_SPI_AOI_DETAIL 生成。
///
[SugarColumn(ColumnName = "ID", IsPrimaryKey = true, OracleSequenceName = "SEQ_SPI_AOI_DETAIL")]
public decimal Id { get; set; }
///
/// 主表 ID(外键),关联 。
///
[SugarColumn(ColumnName = "HEADER_ID")]
public decimal HeaderId { get; set; }
///
/// 面积超出数量。
///
[SugarColumn(ColumnName = "AREA_OVERFLOW_COUNT")]
public int AreaOverflowCount { get; set; }
///
/// 面积不足数量。
///
[SugarColumn(ColumnName = "AREA_UNDERFLOW_COUNT")]
public int AreaUnderflowCount { get; set; }
///
/// 高度超出数量。
///
[SugarColumn(ColumnName = "EXCEEDING_HEIGHT_COUNT")]
public int ExceedingHeightCount { get; set; }
///
/// 高度不足数量。
///
[SugarColumn(ColumnName = "INSUFFICIENT_HEIGHT_COUNT")]
public int InsufficientHeightCount { get; set; }
///
/// X偏移数量。
///
[SugarColumn(ColumnName = "X_DEVIATION_COUNT")]
public int XDeviationCount { get; set; }
///
/// Y偏移数量。
///
[SugarColumn(ColumnName = "Y_DEVIATION_COUNT")]
public int YDeviationCount { get; set; }
///
/// 塌陷数量。
///
[SugarColumn(ColumnName = "COLLAPSE_COUNT")]
public int CollapseCount { get; set; }
///
/// 拉尖数量(焊锡拉尖)。
///
[SugarColumn(ColumnName = "SOLDER_PULL_TIP_COUNT")]
public int SolderPullTipCount { get; set; }
///
/// 异形数量。
///
[SugarColumn(ColumnName = "ABNORMALITY_COUNT")]
public int AbnormalityCount { get; set; }
///
/// 产线显示名称。
///
[SugarColumn(ColumnName = "LINE_DISPLAY_NAME")]
public string? LineDisplayName { get; set; }
///
/// 检测机台名称。
///
[SugarColumn(ColumnName = "MACHINE_NAME")]
public string? MachineName { get; set; }
///
/// 投入板数量。
///
[SugarColumn(ColumnName = "INPUT_BOARDS")]
public int InputBoards { get; set; }
///
/// OK 板数量。
///
[SugarColumn(ColumnName = "OK_BOARDS")]
public int OkBoards { get; set; }
///
/// 通过板数量。
///
[SugarColumn(ColumnName = "PASS_BOARDS")]
public int PassBoards { get; set; }
///
/// 合格率(单位:%)。
///
[SugarColumn(ColumnName = "PASS_RATE")]
public decimal? PassRate { get; set; }
///
/// 不良板数量。
///
[SugarColumn(ColumnName = "DEFECT_BOARDS")]
public int DefectBoards { get; set; }
///
/// 不良率(单位:%)。
///
[SugarColumn(ColumnName = "DEFECT_RATE")]
public decimal? DefectRate { get; set; }
///
/// 不良数(单位:PPM)。
///
[SugarColumn(ColumnName = "DEFECT_PPM")]
public int? DefectPpm { get; set; }
///
/// 不良点数。
///
[SugarColumn(ColumnName = "DEFECT_POINTS")]
public int DefectPoints { get; set; }
///
/// 实测点数。
///
[SugarColumn(ColumnName = "MEASURED_POINTS")]
public int MeasuredPoints { get; set; }
///
/// 待测点数。
///
[SugarColumn(ColumnName = "PENDING_POINTS")]
public int PendingPoints { get; set; }
///
/// 创建时间,默认写入数据库时间戳。
///
[SugarColumn(ColumnName = "CREATED_AT")]
public DateTime CreatedAt { get; set; }
///
/// 更新时间,默认写入数据库时间戳。
///
[SugarColumn(ColumnName = "UPDATED_AT")]
public DateTime UpdatedAt { get; set; }
}