package com.sckw.order.api.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单执行情况看板行数据（已下单未结算）
 */
@Data
public class OrderExecutionDisplayVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "订单号（贸易订单编号）")
    private String orderNo;

    @Schema(description = "计划量，单位：吨，四舍五入正整数")
    private Integer plannedTons;

    @Schema(description = "已装载，单位：吨，四舍五入两位小数（已完成运单净重汇总）")
    private BigDecimal loadedTons;

    @Schema(description = "车次：已完成车辆运单数量")
    private Integer tripCount;

    @Schema(description = "完成率（百分比数值），已装载÷计划量×100，四舍五入两位小数，如 95.56 表示 95.56%")
    private BigDecimal completionRatePercent;
}
