package com.ximai.mes.report.response;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 进度报表主表查询行 DTO（Mapper 用）
 */
@Data
public class ProgressReportRowDto {
    private Long workorderId;
    private String arrangeCode;
    private Date scheduleTime;
    private String orderCode;
    private String lineName;
    private String workorderCode;
    private String orderSerial;
    private String workorderType;
    private String productCode;
    private String productName;
    private BigDecimal planQuantity;
    private BigDecimal quantityProduced;
    private Date requestDate;
    /** 工单工序数量（用于在制进度分母 计划数量*N） */
    private Integer processCount;
    /** 各工序报工数量之和（来自 pro_task_workunit） */
    private BigDecimal sumProcessQty;
    /** 在制进度% = sumProcessQty/(planQuantity*processCount)*100，SQL 计算便于按条件筛选 */
    private BigDecimal progressPercent;
}
